3 ms·
People often forget about the perf benefits of GC, focusing only on the overhead of collection. Still, you might be able to win in rust by using something like
by seanmcdirmid 9y ago
People often forget about the perf benefits of GC, focusing only on the overhead of collection. Still, you might be able to win in rust by using something like arenas when possible (though the type state system might not help in that case).
- steveklabnik 9y agoRust hasn't had typestate in something like four years now. Arenas and lifetimes work well together; the compiler actually has a hierarchy of arenas inside of it, and makes sure thanks to lifetimes that once the shorter-lived ones are freed, they don't get used again, for example.