Y
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
weberc2
2555 days ago
Only for Java, not Python. And in any case, the cache performance will still be worse, but that’s a more minor cost.
link