News for hackers. Stuff that matters.
Re:Why is Arrays.fill 265 times slower on G1GC? by marginalia_nu on Friday September 04, 2026 @02:01PM (#49568007)
Where pooling does sometimes win is for stuff like intermediate buffers for compression or decompression, since a Java alloc will zero the memory, which for sufficiently large buffers is much costlier than the allocation itself, and in such a case you don't care if it's zeroed.

Removing allocation pressure can also have effects on other parts of the system, but that is anything but trivial to measure or reason about.

There are no comments on this comment yet.