Koloboke icon indicating copy to clipboard operation
Koloboke copied to clipboard

Optimize immutable containers creation

Open leventov opened this issue 10 years ago • 1 comments

Corrently simply mutable container created first, then it's state moved to immutable. For example: https://github.com/OpenHFT/UntitledCollectionsProject/blob/da3bea76e014fe00aed5f4dcadcbfca14499e4eb/impl/src/main/javaTemplates/net/openhft/collect/impl/hash/HashCharSetFactoryGO.java#L220

This approach cause considerable GC overhead, if someone is going to create many small containers.

leventov avatar Jan 27 '14 10:01 leventov

Immutable and Mutable, now. After b7f77f67ee7092b72d5edf45e4030d879cd8f225 Updatable are collections created first.

leventov avatar Jun 09 '14 23:06 leventov