Subject: Re: [xsl] Is xsl:for-each "syntactic sugar"? From: "C. M. Sperberg-McQueen" <cmsmcq@xxxxxxxxxxxxxxxxx> Date: Fri, 7 May 2010 12:08:58 -0600 |
It may be that (as Dimitre Novatchev suggests)
for-each may run faster. And so if you run into performance problems,
consider trying it. (But remember Jon Bentley's first rule of program
optimization: don't do it until you know you need to do it.)
I didn't suggest that "for-each" may run faster.
I said that iterative constucts may be implemented more efficiently. (This is a general statement and we all know that efficiency varies accross implementations.)
Sorry. Quite right, my paraphrase was careless and I thank you for the clarification.
This by no means should be interpreted as a recommendation to choose <xsl:for-each> over <xsl:apply-templates>.
To repeat once again my statement: Choose an iterative construct over *explicit* recursion, if this is possible.
-- **************************************************************** * C. M. Sperberg-McQueen, Black Mesa Technologies LLC * http://www.blackmesatech.com * http://cmsmcq.com/mib * http://balisage.net ****************************************************************
Current Thread |
---|
|
<- Previous | Index | Next -> |
---|---|---|
Re: [xsl] Is xsl:for-each "syntacti, Dimitre Novatchev | Thread | [xsl] RE: Is xsl:for-each "syntacti, Costello, Roger L. |
[xsl] stack usage in for-each and a, C. M. Sperberg-McQue | Date | Re: [xsl] stack usage in for-each a, Dimitre Novatchev |
Month |