RE: Speed of global function

new topic     » goto parent     » topic index » view thread      » older message » newer message

On 17 Aug 2003 at 1:49, jxliv7 at hotmail.com wrote:

> > Although I accept you are probably just experimenting for a bit of
> > fun, it is worth saying that shaving 20% off a routine which is
> > already quite fast will have almost no effect whatsoever on the
> > performance of a larger program.
> > 
> 
> actually, it might. the routine i was trying to compact would
> run every now and then in the application, reversing a sequence 
> with as many as 99,999,999 million elements. why the difference between 
> 38 seconds and 22 seconds makes me wonder.
> 
FYI, reversiing a 20 element string with a built-in
function is a full 28 times faster.
A 100 element sequence reverses 38 times faster.

Karl Bochert

new topic     » goto parent     » topic index » view thread      » older message » newer message

Search



Quick Links

User menu

Not signed in.

Misc Menu