Re: [xml] optimizing patch for xpath.c

On Tue, Feb 17, 2004 at 12:26:58PM +0100, Petr Pajas wrote:
The attached simple copy/paste patch for xpath.c applies the
optimisation again as soon as the highest non-common ancestor elements
for the compared nodes are found.

  This makes sense.

The results are quite surprising:

  indeed !

Of course, if the document contained only elements, there would be
little difference, if any at all.

  maybe a bit of slowdown due to the repeated test, no ? 
This passes the regression test of libxml2 and libxslt, so commited,

  thanks a lot !


Daniel Veillard      | Red Hat Network
veillard redhat com  | libxml GNOME XML XSLT toolkit | Rpmfind RPM search engine

[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]