Hacker News new | ask | show | jobs
by xfer 2555 days ago
That heap allocation is most likely either optimized away and allocated in stack/ allocated in minor heap which is same as bumping a pointer just like in stack!
1 comments

Only for Java, not Python. And in any case, the cache performance will still be worse, but that’s a more minor cost.