Re: [xml] xmllint --postvalid much slower than --valid



On Sun, Feb 22, 2004 at 06:29:36PM +0100, Petr Pajas wrote:
Hi Daniel, All,

this may or may not be related to the recent problem with slow DTD-validation 
of large documents with many ID/IDREFs 
(http://mail.gnome.org/archives/xml/2004-February/msg00239.html).

The problem is, that running xmllint --valid on my document now takes about 5s 
which is quite perfect, but running xmllint --postvalid still takes about 
1m30s. So either the previous fix applies only to --valid and doesn't cover 
--postvalid (which I don't believe) or there is some similar issue, regarding 
just --postvalid and not --valid.  Skeletons of my documents are the same as 
before and can be found at http://pajas.matfyz.cz/dtdvalid-test.zip.

  Can you bugzilla this ? BTW, only --valid really mean DTD validation in the
sense of the definition in the XML REC. Also I think I did make my patch 
when testing with your data when using --dtdvalid (as your files were not
having a DOCTYPE, if I remember correctly --postvalid would not work).

While trying to provide more information or even better to find the 
problematic spot, I recompiled libxml2 with -pg and ran gprof on xmllint but 
apparently I don't know how to use the tool correctly because I only got some 
useless information about a few calls within xmllint but no info at all about 
what's going on in libxml2 itself. How do I profile libxml2.so? (Do I have to 
recompile xmllint to link libxml2 statically?)

  yes. best is to relink statically for profiling with gprof. Please
double check you're really using the new shared libraries and if problem
persists, then bugzilla.

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]