1
0
mirror of https://gitlab.gnome.org/GNOME/libxml2.git synced 2025-07-29 11:41:22 +03:00

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
This commit is contained in:
Daniel Veillard
2003-04-21 21:36:41 +00:00
parent 83c8a5cd31
commit a880b12475
10 changed files with 477 additions and 405 deletions

View File

@ -1051,8 +1051,10 @@ xmlParserInputShrink(xmlParserInputPtr in) {
* Do not shrink on large buffers whose only a tiny fraction
* was consumed
*/
#if 0
if ((int) in->buf->buffer->use > used + 2 * INPUT_CHUNK)
return;
#endif
if (used > INPUT_CHUNK) {
ret = xmlBufferShrink(in->buf->buffer, used - LINE_LEN);
if (ret > 0) {