4 ms·
Even with only 25% growth per realloc, you hit logarithmic overhead (only with a higher k because more actual copying.)
by jwatte 10y ago
Even with only 25% growth per realloc, you hit logarithmic overhead (only with a higher k because more actual copying.)