Not really... the wasted time is still all malloc() &#x2F; realloc() &#x2F; whatever under array.push(), and a half-decent callgraph profiler will catch that. array.push() will score far higher than it ought to, and the bulk of its time will be the reallocation.<p>Source: I&#x27;ve used oprofile, and later perf, to hunt exactly this kind of performance bug.<p>.<p>Of course, <i>fixing</i> a pervasive issue like that is much more tedious than just <i>finding</i> it. :-(