Hacker Newsnew | past | comments | ask | show | jobs | submitlogin

> Especially if you can't or don't want to use memory mapping because it's hard to do well.

Why do new languages never address this issue?



In-kernal block caching of files is pretty crude - since the kernel has no knowledge of your data structures or which bits of your files you're going to be reading next, you end up having hundreds of page faults requiring single-sector disk reads for most workloads.


That’s often the case if your file format evolves without taking a mmap use case into account. But for a format that’s designed with mmapping in mind, it is often ridiculously faster and more effective.

But most languages and environments don’t let you do that easily.




Guidelines | FAQ | Lists | API | Security | Legal | Apply to YC | Contact

Search: