3 ms·
>The unpredictable aspect is the stop the world pause caused by garbage collection. As well as malloc pauses on deallocation. The only way of using your memory
by ernst_klim 8y ago
>The unpredictable aspect is the stop the world pause caused by garbage collection.
As well as malloc pauses on deallocation. The only way of using your memory in realtime apps is preallocation, which often can be done in languages with GC too, it would be just very inconvenient.
At the moment custom allocation support in rust is a joke if you compare it with Ada or C++, and Box is not better than GC in this regard.
>Unstable
Besides it's very inconvenient to use. Does Box/Rc/Arc support this arena allocator, as C++'s smart_pointers do?