RE: [xml] too many mallocs?

-----Original Message-----
From: Daniel Veillard [mailto:veillard redhat com] 
Sent: Tuesday, May 21, 2002 4:38 PM

  Well some people suggested dropping xmlMalloc/xmlFree
to use alloca() in some context where the result is discarded 
anyway, but I'm not too fond of this.

alloca is much more efficient on most platforms, as it allocs out of the
stack, saving heap free list manipulation/searching.

What hesitations do you have about alloca?


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]