summaryrefslogtreecommitdiff
path: root/ext/xmlreader/php_xmlreader.h
diff options
context:
space:
mode:
authorRasmus Lerdorf <rasmus@php.net>2006-06-15 20:49:05 +0000
committerRasmus Lerdorf <rasmus@php.net>2006-06-15 20:49:05 +0000
commit12022014fade5be728c868e4b163a64747ec02e7 (patch)
tree39eacf3ff87f254d50707a5411db4af1e3e58387 /ext/xmlreader/php_xmlreader.h
parent1dbaae2795b756a3875c53da00b277f241cc04b8 (diff)
downloadphp-git-12022014fade5be728c868e4b163a64747ec02e7.tar.gz
MFH:
I don't think the call to xmlNodeSetContentLen() is needed here and it is causing performance problems because it tries to parse the blob and create a subtree. Because we are escaping the string anyway, we are never going to get a subtree, but the entity parsing that is done by xmlNodeSetContentLen() is killing performance on large blobs of text. On one recent example it took a couple of minutes to parse whereas if we just create a text node like this and set the contents to the raw string it is down to milliseconds.
Diffstat (limited to 'ext/xmlreader/php_xmlreader.h')
0 files changed, 0 insertions, 0 deletions