News for hackers. Stuff that matters.
Re:Java is very fast, if you don’t create many objects by kaba0 on Monday September 12, 2022 @12:18PM (#32812559)
Well, it is solved, but it is still not free.

Java uses something called TLABs (thread local allocation buffer) which are basically arena allocators where a new object creation is a pointer bump (no need to even synchronize!). Later the GC will move longer-lived objects to a more permanent location, reusing the whole buffer for basically free.

There are no comments on this comment yet.