xsl-list
[Top] [All Lists]

RE: XSLT sort

2004-05-21 01:43:23
ok,

Is the sort element in XSLT depended on how sorted the document are from the beginning? Like the QuickSort algorithm, when a already sorted array takes less time to sort then a array thats not?

/Tomas

>
> If i use 8k lines the time will be around 3 seconds and I
> would like it to
> be around 1.5 seconds. Half the time. Maybe its not possible?
>

It sounds do-able. As it happens the New Testament contains 7957 verses;
Saxon can sort them alphabetically in 991 milliseconds. That's a stylesheet
that does nothing except select the verses and sort them. There's really no
tuning you can usefully do to the code of such a stylesheet.

Michael Kay


--+------------------------------------------------------------------
XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list
To unsubscribe, go to: http://lists.mulberrytech.com/xsl-list/
or e-mail: <mailto:xsl-list-unsubscribe(_at_)lists(_dot_)mulberrytech(_dot_)com>
--+--




<Prev in Thread] Current Thread [Next in Thread>