by dullgiulio · 8y ago · 0 comments
If profiling finds that there are too many allocations on a hot path, you might want to see why they escape to heap. But that's a last resort strategy.
Have a look at [1] and go down to where it says " To find out why the garbage collector is running so much".