diff options
author | Daniel Veillard <veillard@src.gnome.org> | 2001-02-25 16:11:03 +0000 |
---|---|---|
committer | Daniel Veillard <veillard@src.gnome.org> | 2001-02-25 16:11:03 +0000 |
commit | 48b2f8968e9f8a9cab63cc72697e900325edfd7e (patch) | |
tree | 6103300e68a7984c8b312dd7f1219ef957df28c6 /entities.c | |
parent | 59a3bd3744b5e46e30ab63dc772bfe924ad81469 (diff) | |
download | android_external_libxml2-48b2f8968e9f8a9cab63cc72697e900325edfd7e.tar.gz android_external_libxml2-48b2f8968e9f8a9cab63cc72697e900325edfd7e.tar.bz2 android_external_libxml2-48b2f8968e9f8a9cab63cc72697e900325edfd7e.zip |
Okay time to improve performances, gprof session:
before real 0m2.483s (2.3.2 release yesterday)
current real 0m1.763s
when parsing (with tree build/freeing) db10000.xml from XSLTMark:
- xmlmemory.h HTMLparser.c HTMLtree.c entities.c parser.c
xpath.c xpointer.c tree.c uri.c valid.c xinclude.c xmlIO.c:
avoiding memcpy in production builds MEM_CLEANUP macro use
- parser.[ch] parserInternals.c: optimizations of the tightest
internal loops inside the parser. Better checking of I/O
flushing/loading conditions
- xmllint.c : added --timing
Daniel
Diffstat (limited to 'entities.c')
-rw-r--r-- | entities.c | 2 |
1 files changed, 1 insertions, 1 deletions
@@ -84,7 +84,7 @@ void xmlFreeEntity(xmlEntityPtr entity) { xmlFree((char *) entity->content); if (entity->orig != NULL) xmlFree((char *) entity->orig); - memset(entity, -1, sizeof(xmlEntity)); + MEM_CLEANUP(entity, sizeof(xmlEntity)); xmlFree(entity); } |