Re:Show HN: Crown – A flexible game engine written from scra...
by moomin on Thursday June 22, 2017 @08:16AM
(#14611667)
I think it reduces fragmentation in the other pools, not the string pool.
Re:Show HN: Crown – A flexible game engine written from scra...
by syrail on Thursday June 22, 2017 @03:03PM
(#14614467)
Bingo. This helps restrict the fragmentation from dynamic strings to one pool of memory, allowing the others to remain nicely packed, aligned, etc (whatever your ideal for them is).
Strings have arbitrary sizes. How does pooling them together reduce fragmentation? Do they always come and go in groups?