3 ms·
Yes, simplicity counts for a lot. Staying in user space is simpler. The reason LMDB can pack so much functionality into only 7KLOCs is because using mmap is mu
by hyc_symas 11y ago
Yes, simplicity counts for a lot. Staying in user space is simpler.
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.