Re:The prospects for 128 bit processors (1995)
by BeeOnRope on Wednesday February 23, 2022 @06:47PM
(#30448335)
You might also consider this Q&A whose answers contain several reasons mmap might be faster, and several why it may be slower:
https://stackoverflow.com/questions/45972/mmap-vs-reading-bl...
Re:The prospects for 128 bit processors (1995)
by IgorPartola on Wednesday February 23, 2022 @08:55PM
(#30449369)
mmap has a bunch of other use cases other than opening files. Shared memory, fast memory allocation, disk-backed memory regions. I believe it was invented after the gun that shoots both forwards and backwards failed to deliver on its fatality quota.
So far I never used mmap (no usecase that pushed me to find alternatives for the usual open&seek), but I was always curious about it.
Your statement made me search & find this ( https://unix.stackexchange.com/questions/474926/how-does-mem... ) => interesting.
Thanks :)