r175906 - Replace some typically large vectors with SmallVector.

Sean Silva silvas at purdue.edu
Fri Feb 22 13:40:48 PST 2013


On Fri, Feb 22, 2013 at 1:29 PM, Benjamin Kramer
<benny.kra at googlemail.com> wrote:
> This may seem counter-intuitive but the POD-like optimization helps when the
> vectors grow into multimegabyte buffers. SmallVector calls realloc which knows
> how to twiddle virtual memory bits and avoids large copies.

Is this optimization something that libc++ should be doing?

-- Sean Silva



More information about the cfe-commits mailing list