4 ms·
Wonder how this compares to using the filesystem and keys where keys are either filenames or a file path (and the value is stored in the file)?
by nijave 4y ago
Wonder how this compares to using the filesystem and keys where keys are either filenames or a file path (and the value is stored in the file)?
- kortex 4y agoI suspect it'll be way, way faster. There's a fair amount of overhead in filesystem calls. (simplification) With any time you are mapping some file to some data structure (dbm, sqlite, mmap), the file descriptor generally stays open while you are working with it, meaning reads/writes/seeks are just about as fast as IO can go.