[cfe-commits] Performance of OwningPtr/move()...

Eli Friedman eli.friedman at gmail.com
Mon Dec 15 15:53:03 PST 2008


On Mon, Dec 15, 2008 at 3:44 PM, steve naroff <snaroff at apple.com> wrote:
> I'm really surprised that calling delete adds so much to "user" time.

Most of the cost of new/delete for small allocations is in the malloc
code, which is "user" time.  The malloc code goes to the OS relatively
infrequently for small allocations.

-Eli



More information about the cfe-commits mailing list