RE: [xml] too many mallocs?
- From: "Robert Collins" <robert collins itdomain com au>
- To: <veillard redhat com>, "Peter Jacobi" <pj walter-graphtek com>
- Cc: <xml gnome org>
- Subject: RE: [xml] too many mallocs?
- Date: Tue, 21 May 2002 20:19:55 +1000
-----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?
Rob
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]