[xsl] Re: Re: An efficient repeat() template (Was: RE: Re: RE: creating a string of repeated charactors)

Subject: [xsl] Re: Re: An efficient repeat() template (Was: RE: Re: RE: creating a string of repeated charactors)
From: Dimitre Novatchev <dnovatchev@xxxxxxxxx>
Date: Wed, 18 Jul 2001 06:03:55 -0700 (PDT)
> > repeat()      -- 67 to 73 milliseconds (50 to 53 if I hardcode 15 for
$ActualTimes)
> >
> > str:padding() -- 130 to 150 milliseconds
> >
> > Therefore repeat() is about 2.8 times as fast as str:padding()
> >

> when looking at optimisation techniques, i would rather first look at those
> techniques which give me benefits in orders of magnitude, then fine tune at
> the unit level; thus my compiled stylesheet comments.
> 
> i will use these 2 forms as test case for my compiled stylesheet project i
> am working on at the moment, will be interesting to see if there is any
> significant difference once they are compiled.

Shouldn't be any difference, as I reported the "execution time" -- this does not
include loading and compilation. 

> and in essence i disagree with
> the practice of inefficient coding.

So do I... :o)

Cheers,
Dimitre.


__________________________________________________
Do You Yahoo!?
Get personalized email addresses from Yahoo! Mail
http://personal.mail.yahoo.com/

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


Current Thread