by eloff · 11y ago · 0 comments
In the vast majority of cases, you want plain read and write. In the vast majority of cases, the overhead of jumping into the kernel is not your bottleneck. Simplicity counts for a lot.
The reason LMDB can pack so much functionality into only 7KLOCs is because using mmap is much simpler than using read() and maintaining a user-level buffer cache.
In the vast majority of cases, developers need to profile their code if they actually care about performance - and fail to do so.