3 ms·
Any insight as to why it's 4-5% faster?
by topspin 9y ago
Any insight as to why it's 4-5% faster?
- atomashpolskiy 9y agoNo idea. Maybe less copying of memory? As far as I remember, C++ may implicitly copy values on some occasions (like returning from a function or pushing into a vector), and in Rust non-primitive values are always moved, and to make an actual copy one has to explicitly opt in by using clone().