SQLite to replace fopen() -
i have heard sqlite designed replace fopen() (1, 2) , hence faster read or write file disk in cases using sqlite rather fopen(). explain might cause it? assuming sqlite not use ram.
i think don't quite "get" richard hipp means statement. of course under hood sqlite use fopen(3)
system call, can not faster. rather opening raw file (e.g. fopen
) , implementing own structure , access functions (therefore ending implementing nih db @ point), better off using sqlite api optimized death , therefore faster come in reasonable time.
of course applies when persisted data structures have complexity. simple files text files you're still better off fopen
.
Comments
Post a Comment