3 ms·
> I’m actually very curious why it takes this long; is Rust memseting the buffer when dropping it? Regardless of memset and optimizations, consider a particul
by Reelin 6y ago
> I’m actually very curious why it takes this long; is Rust memseting the buffer when dropping it?
Regardless of memset and optimizations, consider a particularly complicated object which lives on the heap and contains hundreds of other nested objects (which themselves contain nested objects, etc). Now imagine that a significant fraction of them make use of RAII. That cleanup code can't be elided.
That being said, it's a pretty bad example if they were actually profiling the debug build ...