4 ms·
Out of curiosity, weren't your objects ending up neatly compacted after a GC cycle?
by tsimionescu 5y ago
Out of curiosity, weren't your objects ending up neatly compacted after a GC cycle?
- nomemory 5y agoI didn't perform any deletes, and I've tried to keep everything clean without allocating intermediary objects. But one the pitfalls is that I cannot play easily on the memory lane with Java. For example in the entries and bins implementation I had to have two separate arrays. In C I would've kept a single array, with a compact zone, and another sparse zone, iterating through it using an offset.