3 ms·
When you're writing a string manipulation function that is called a lot of times you also don't allocate memory. And GC isn't necessarily slower than manual mem
by Kristine1975 11y ago
When you're writing a string manipulation function that is called a lot of times you also don't allocate memory. And GC isn't necessarily slower than manual memory management. And std::unique_ptr is never slower than manual memory management, since it does exactly the same thing.