3 ms·
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
by bjnbb 12y 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-minecraft-devs-for-the-code-in-the-newest-version/4235 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.
- Jyaif 12y agoWith new allocations you can have better cache consistency, so reusing objects is not always faster.