3 ms·
GC can surpass the performance of manual memory management in certain situations, assuming that the manually managed code is forced to allocate for some reason.
by kibwen 10y ago
GC can surpass the performance of manual memory management in certain situations, assuming that the manually managed code is forced to allocate for some reason. GCs almost universally use far more memory than manual schemes, though (I'm having a hard time imagining a counterexample).
- mmstick 10y agoThat depends on the allocator you are using. Rust bundles jemalloc by default, which organizes deallocations/allocations such that they are very efficient.