Re:Sub-10 ms Latency in Java: Concurrent GC with Green Threads
by nestorD on Wednesday August 05, 2020 @04:46PM
(#24065414)
dthul's comment [0] covers my point of view fairly well. Clones and new are easy to spot, you might not be careful about them because you do not care or have other priority but you can find/grep them quickly: they are explicit.
Meanwhile C++ has a lot of implicit memory allocation and things that might or might not allocate.
And if you do `MyAwesomeStructure::new()` you might actually trigger a whole bunch of allocations which are invisible.
So a "yes" from my side on Rusts ability to remove allocations if you try hard enough. A "no" however on allocations being extremely explicit and easy to see for non experts.