RE: Speed of global function

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

Rob, appreciate the response.

> Robert Craig wrote:
>
> I just tried your code on my Pentium-4 machine,
> and it showed Forno's routine to be the fastest (by 20%
> over the official), your rewritten reverse() to be 2nd fastest and
> the official one to be third fastest, although
> yours and the official one were very close.
> 
> On my Pentium-2 under Linux I got essentially the same
> results, but the gap between fastest and slowest was narrow.
> 

but it still doesn't explain how i can just change the names on your
global routine and get completely slower consistent times.

a routine by any other variables is still that routine, no?

i had suspected that Forno's routine would be faster, simply because it 
left out an assignment and a calculation compared to the other two 
routines.

i had not considered that the machine i running it on might make a 
difference.

thanks, 


--
jon

jxliv7 at hotmail.com

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

Search



Quick Links

User menu

Not signed in.

Misc Menu