Re:Spotting and Avoiding Heap Fragmentation in Rust Applicat...
by pkolaczk on Friday April 07, 2023 @10:02AM
(#35481647)
> Heap fragmentation is just a reality of some allocation patterns without a GC runtime.
It is also a reality with a GC runtime, even a compacting one. Tracing GCs have acceptable performance only if the available memory is many times larger than the memory used. Technically this maybe isn't called fragmentation, but the effects are just as bad - the application uses much more memory than really needed.
It is also a reality with a GC runtime, even a compacting one. Tracing GCs have acceptable performance only if the available memory is many times larger than the memory used. Technically this maybe isn't called fragmentation, but the effects are just as bad - the application uses much more memory than really needed.