xsl-list
[Top] [All Lists]

[xsl] Lesson learned: how to reduce execution time from 26 minutes to 16 seconds

2014-11-08 09:42:02
Hi Folks,

You've got a long, linear sequence of <row> elements to process. You access 
each <row> element like so:

        /*/row[position() eq $counter]

where $counter is an incrementing counter.

I wrote my XSLT program that way. My input data consisted of over 110,000 <row> 
elements. My program took 26 minutes to execute! Ouch!

I then modified my program to instead access each <row> element like so:

        following-sibling::row[1]

When I ran my revised XSLT program, the execution time dropped to 16 seconds! 
Yes!

/Roger
--~----------------------------------------------------------------
XSL-List info and archive: http://www.mulberrytech.com/xsl/xsl-list
EasyUnsubscribe: http://lists.mulberrytech.com/unsub/xsl-list/1167547
or by email: xsl-list-unsub(_at_)lists(_dot_)mulberrytech(_dot_)com
--~--

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