Re: memory allocations.



On Fri, Mar 01, 2002 at 09:06:45PM +0000, Sander Vesik wrote:
> the malloc callers toplist is:
> 	g_malloc
> 	calloc
> 	XCreateGC
> 	xmlStrndup
> 	XListPixmapFonts
> 	_XEnq
> 	xmlParseAttValue

  For the last one, unfortunately it's hard to fix, the SAX C API
requires the argument/values to be passed as 0 terminated string. Also 
the XML specifcation requires normalization of attribute values which
tends to generate reallocation of strings at that level too.

Daniel

-- 
Daniel Veillard      | Red Hat Network https://rhn.redhat.com/
veillard redhat com  | libxml Gnome XML XSLT toolkit  http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/
_______________________________________________
gnome-hackers mailing list
gnome-hackers gnome org
http://mail.gnome.org/mailman/listinfo/gnome-hackers



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