On Monday 06 September 2010, Paul Fee wrote: > Currently headers and data are in separate files. If they were in > a single file, the operating system is given more indication that > these two items are tightly coupled. For example, when the > headers are read in, the O/S can readahead and buffer part of the > body.
I think it would be better to use posix_fadvise() to give the OS hints to improve read-ahead. But this probably needs some profiling, it could have a negative effect on memory constrained systems.