aboutsummaryrefslogtreecommitdiffstats
path: root/xmllint.c
diff options
context:
space:
mode:
authorDaniel Veillard <veillard@src.gnome.org>2003-04-21 21:36:41 +0000
committerDaniel Veillard <veillard@src.gnome.org>2003-04-21 21:36:41 +0000
commita880b124750afcce94ea3d947125d0f8a034e766 (patch)
tree71e12d33ccb7f395c669db50cc05dd2edf6b6508 /xmllint.c
parent83c8a5cd3109c4625e2dacdf07e0634347e25b71 (diff)
downloadandroid_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.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/xmllint.c b/xmllint.c
index 60c175bb..698170c2 100644
--- a/xmllint.c
+++ b/xmllint.c
@@ -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,