Koloboke
Koloboke copied to clipboard
Optimize immutable containers creation
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.
Immutable and Mutable, now. After b7f77f67ee7092b72d5edf45e4030d879cd8f225 Updatable are collections created first.