RE: Speed of global function
- Posted by kbochert at copper.net Aug 17, 2003
- 425 views
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