diff options
author | Daniel Veillard <veillard@src.gnome.org> | 2003-04-21 21:36:41 +0000 |
---|---|---|
committer | Daniel Veillard <veillard@src.gnome.org> | 2003-04-21 21:36:41 +0000 |
commit | a880b124750afcce94ea3d947125d0f8a034e766 (patch) | |
tree | 71e12d33ccb7f395c669db50cc05dd2edf6b6508 /xmllint.c | |
parent | 83c8a5cd3109c4625e2dacdf07e0634347e25b71 (diff) | |
download | android_external_libxml2-a880b124750afcce94ea3d947125d0f8a034e766.tar.gz android_external_libxml2-a880b124750afcce94ea3d947125d0f8a034e766.tar.bz2 android_external_libxml2-a880b124750afcce94ea3d947125d0f8a034e766.zip |
a lot of performance work especially the speed of streaming through the
* globals.c libxml.h parser.c parserInternals.c tree.c xmllint.c
xmlreader.c include/libxml/parser.h: a lot of performance work
especially the speed of streaming through the reader and push
interface. Some thread related optimizations. Nearly doubled the
speed of parsing through the reader.
Daniel
Diffstat (limited to 'xmllint.c')
-rw-r--r-- | xmllint.c | 5 |
1 files changed, 2 insertions, 3 deletions
@@ -763,12 +763,11 @@ static void parseAndPrintFile(char *filename) { } if (f != NULL) { int ret; - int res, size = 3; + int res, size = 1024; char chars[1024]; xmlParserCtxtPtr ctxt; - if (repeat) - size = 1024; + /* if (repeat) size = 1024; */ res = fread(chars, 1, 4, f); if (res > 0) { ctxt = xmlCreatePushParserCtxt(NULL, NULL, |