3 ms·
I clone all the time to make the borrow checker leave me alone. If this code shows up as a hot spot in a profile I can spend the extra energy to optimize it. I
by wyldfire 6y ago
I clone all the time to make the borrow checker leave me alone. If this code shows up as a hot spot in a profile I can spend the extra energy to optimize it.
I hope to evolve my understanding so that I can do the right thing at design time to minimize unnecessary clone()s.