Speed of global function
- Posted by jxliv7 at hotmail.com Aug 16, 2003
- 405 views
Rob, i was playing with creating a reverse function, and consistently found that mine was 2 to 3 to 5 times slower than the global reverse in misc.e. however, when i 'copied' the global reverse function as my own 'test' function -- only the names were changed to protect the innocent -- it was still at least twice as slow as the global function. for example: 10,000 reps, 99 elements, 0.16 vs 0.06 seconds total time in for loop 10,000 reps, 999 elements, 1.54 vs 0.71 seconds 10,000 reps, 99,999 elements, 312.75 versus 252.55 seconds i find that odd. is there a 'built in' reason for it...? code on request, -- jon jxliv7 at hotmail.com