U4-1486 - I don't know how to explain this. Why is it faster after I add one useless line.

Created by esunxray 17 Jan 2013, 10:39:17 Updated by esunxray 17 Jan 2013, 12:21:20

I use MNTP to set categories. if I use following code, it will be very very slow.

<xsl:variable name="tags" select="$root//[@isDoc]/@id"/> <xsl:variable name="nodes" select="$root//[@isDoc and umbraco.library:Split(tags,',')//value=$tags]"/>

But after I add one useless line. It's all OK.

<xsl:variable name="tags" select="$root//[@isDoc]/@id"/> <xsl:value-of select="substring($tags,1,0)"/> <xsl:variable name="nodes" select="$root//[@isDoc and umbraco.library:Split(tags,',')//value=$tags]"/>

I want someone know why this happens and tell me why.

Comments

Sebastiaan Janssen 17 Jan 2013, 12:05:34

Please refer to your forum post, it's not a bug that can be fixed in Umbraco as we're just using Microsoft's xml parser. http://our.umbraco.org/forum/developers/xslt/36476-Add-one-useless-line-will-make-xslt-run-faster-Who-can-tell-me-why


esunxray 17 Jan 2013, 12:21:20

Could someone post this bug to microsoft?


Priority: Normal

Type: Bug

State: Closed

Assignee:

Difficulty: Normal

Category:

Backwards Compatible: True

Fix Submitted:

Affected versions:

Due in version:

Sprint:

Story Points:

Cycle: