logoalt Hacker News

lstoddyesterday at 7:41 PM1 replyview on HN

It becames super slow when you bump that pointer into a page that's missing from the TLB.


Replies

HarHarVeryFunnyyesterday at 8:01 PM

A TLB miss could happen when executing the next statement in your program. It's not something you have a lot of control over, and doesn't change the fact that allocating from the stack (when an option) is going to be faster than allocating from the heap.

show 1 reply