This is the mail archive of the xsl-list@mulberrytech.com mailing list .


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]

Re: reverse() template (Was: RE: XSL output method="text" and indent preservation)


Dimitre Novatchev wrote:
> 
> 
> Here are two templates for reversing a string. The first is much faster and more
> straightforward, the second will almost never cause an XSLT processor to crash due
> to deep recursive processing (it has a maximum recursion depth of only 20 for
> reversing a 1MB long string):
> 
A logarithmic decrease in stack depth, very nice. How great is the
difference in performance?

Francis.

 XSL-List info and archive:  http://www.mulberrytech.com/xsl/xsl-list


Index Nav: [Date Index] [Subject Index] [Author Index] [Thread Index]
Message Nav: [Date Prev] [Date Next] [Thread Prev] [Thread Next]