[xml] Re: libxml2 performance xmlParseAttValue
- From: Daniel Veillard <veillard redhat com>
- To: Peter Jacobi <pj walter-graphtek com>
- Cc: xml gnome org
- Subject: [xml] Re: libxml2 performance xmlParseAttValue
- Date: Fri, 31 May 2002 05:47:01 -0400
On Fri, May 31, 2002 at 11:37:58AM +0200, Peter Jacobi wrote:
Content-Description: Mail message body
Hi Daniel, All,
Another easy one (perhaps the last and I should start
thinking before coding):
xmlParseAttValue unsurprisingly can profit from
factoring out the easy case, just as already done
for xmlParseName and xmlParseCharData.
hum, right !
Benefits are pronounced for svg3, but also libxml-api.xml
should gain something like 10%.
yes, that's more or less what I'm seeing here !
This optimization helps most for long attributes as the
costly processing in xmlParseAttValueComplex can
be skipped, but for many small attributes (as in
libxml-api.xml) the gains are limited by still strnduping.
For these cases xmlParseStartTag should use a
per-document static buffer for all attribute values found
in one start tag, but this will give some major surgery
in the sources.
This would have to be associated to the parser context, why not !
Applied, thanks !
Daniel
--
Daniel Veillard | Red Hat Network https://rhn.redhat.com/
veillard redhat com | libxml GNOME XML XSLT toolkit http://xmlsoft.org/
http://veillard.com/ | Rpmfind RPM search engine http://rpmfind.net/
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]