You are viewing a plain text version of this content. The canonical link for it is here.
Posted to general@xml.apache.org by Steve Cohen <St...@ignitemedia.com> on 2000/11/01 21:20:32 UTC

More on problem of transform that is taking too long.

More on the 
This is the line that appears to be the performance-killer:

        <xsl:variable name="months"
select="game[not(year_and_month=preceding-sibling::game/year_and_month)]/yea
r_and_month" />

The point of this is to aid in grouping the schedule by month.  I will then
iterate through the months, outputting all lines belonging to that month.
However, even with all the code that outputs elements commented out, just
executing this line immediately pegs the CPU at 100%.  Remember, the input
is sorted by date.  Why is this simple instruction causing so much delay?
In smaller cases, it doesn't cause this much trouble.