Is mmap still faster than fread? That might have been true in the 90s but I was wondering about current improvements.
If you have enough free memory, the file will be cached in memory anyway instead of residing on disk. Therefore both will be reading from memory, albeit through different API.
Looking for recent benchmark or view from OS developers.