]> granicus.if.org Git - php/commit
I don't think the call to xmlNodeSetContentLen() is needed here and
authorRasmus Lerdorf <rasmus@php.net>
Thu, 15 Jun 2006 18:03:30 +0000 (18:03 +0000)
committerRasmus Lerdorf <rasmus@php.net>
Thu, 15 Jun 2006 18:03:30 +0000 (18:03 +0000)
commitc0c6e9944f749c791f64656e879f410f2b3016cf
tree7a3ede9e50aad21118627dd74af6033a1323917b
parent927c5f2eb71f611f8bad01282bae1169a2160681
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.  As far as I can tell
all the tests pass with this patch.
ext/soap/php_encoding.c