3 ms·
Are you doing something in a hot loop or not? The answer is likely that it doesn't really matter. If you really need speed, then estimate how large string you
by im3w1l 3y ago
Are you doing something in a hot loop or not? The answer is likely that it doesn't really matter.
If you really need speed, then estimate how large string you need in advance and preallocate it (either with new char[], or string::reserve ig).