Hacker News new | ask | show | jobs
by bjnbb 4112 days ago
Reusing objects will always going to be faster. If memory is not being allocated, GC never runs.

Look what happened to Minecraft when they stopped caring about allocations: http://what.thedailywtf.com/t/optifine-modder-rips-the-minec... It's allocating 150 MB/second. It's now much slower than it was before.

1 comments

With new allocations you can have better cache consistency, so reusing objects is not always faster.