2 ms·
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!
by xfer 7y 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!
- weberc2 7y agoOnly for Java, not Python. And in any case, the cache performance will still be worse, but that’s a more minor cost.