Y
Hacker News
new
|
ask
|
show
|
jobs
by
beagle3
1699 days ago
And in most cases, if you memory map (mmap on Linux/BSD, MapViewOfFile on windows) it’s way faster than reading the file - because you only ever read what’s needed on one hand, and it stays in cache between invocations.