3 ms·
No, because of the sendfile syscall, where the kernel pass all the file data without switching back to userspace. Even if you can in theory save some time with
by oscargrouch 8y ago
No, because of the sendfile syscall, where the kernel pass all the file data without switching back to userspace.
Even if you can in theory save some time with small files with sqlite, you would be back to read/write IO and userspace/kernel byte buffer switching.
And it probably wouldn't be faster than something like a mmaped file anyway (unless the SQLite Db is also mmaped).
- fiddlerwoaroof 8y agoThe thing is SQLite handles a lot of hard problems that you might not realize you have: like “was my data actually written to the disk”