Re: [xml] xmlXPathNodeSetSort performance
- From: Daniel Veillard <veillard redhat com>
- To: Vojtech Fried <vfried opentext com>
- Cc: "xml gnome org" <xml gnome org>
- Subject: Re: [xml] xmlXPathNodeSetSort performance
- Date: Tue, 4 Sep 2012 11:51:27 +0800
On Fri, Aug 24, 2012 at 09:48:37AM +0000, Vojtech Fried wrote:
-----Original Message-----
From: Daniel Veillard [mailto:veillard redhat com]
Sent: 24. srpna 2012 11:02
Subject: Re: [xml] xmlXPathNodeSetSort performance
Took a bit of time but I have included this in git, with a bit of cleanup and integration changes like
the macros WITH_TIM_SORT in xpath.c if some people need to quickly switch back or something.
I was a bit worried at first about __builtin_clzll but that should be okay
http://git.gnome.org/browse/libxml2/commit/?id=3e031b7dae590bdd03084a5971d9f9e66fe5d50b
Great, thanks!
Just one nitpick:
It is not true, that wrap_cmp returns -2 or +2. It usually returns just -xmlXPathCmpNodes[Ext]. Only in
case it gets -2 from there, it returns -2. This is to make the sign of the result consistent with how
original xmlXPathNodeSetSort handles it: -2 means an error, but in the original xmlXPathNodeSetSort it is
handled in the same way as 1 or 0.
I guess I am just saying a simple thing in a confusing way :-)
Ah, right, I misread, fixed :-)
Daniel
--
Daniel Veillard | libxml Gnome XML XSLT toolkit http://xmlsoft.org/
daniel veillard com | Rpmfind RPM search engine http://rpmfind.net/
http://veillard.com/ | virtualization library http://libvirt.org/
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]