[XSL-LIST Mailing List Archive Home] [By Thread] [By Date] [Recent Entries] [Reply To This Message] Re: Efficiency: predicate vs function
On 7/22/07, Michael Kay <mike@xxxxxxxxxxxx> wrote:
> For example, to return a sequence of all items but the last [sic: first], > which of the following is better? > > $x[ position() > 1 ] > > or > > remove( $x , 1 ) >
The change was made in some heavily used parts of the stylesheet and although I never benchmarked the difference it was significant enough to stick in my mind - around say 10 seconds on a transform that was taking ~50 seconds at the time. (which now takes around ~1.5secs in the latest version :-) [1] http://andrewjwelch.com/code/xslt/sudoku/sudoku-solver.html -- http://andrewjwelch.com
|
PURCHASE STYLUS STUDIO ONLINE TODAY!Purchasing Stylus Studio from our online shop is Easy, Secure and Value Priced! Download The World's Best XML IDE!Accelerate XML development with our award-winning XML IDE - Download a free trial today! Subscribe in XML format
|