logoalt Hacker News

jeffbeelast Tuesday at 11:53 PM1 replyview on HN

You mean it converts an expression like `buf[i]` into a baroque sequence of CPU exception paths, potentially involving a trap back into the kernel.


Replies

rishabhaioveryesterday at 12:08 AM

I don't fully understand the under the hood mechanics of mmap, but I can sense that you're trying to convey that mmap shouldn't be used a blanket optimization technique as there are tradeoffs in terms of page fault overheads (being at the mercy of OS page cache mechanics)

show 2 replies