I wondered, with the notable speed increase in PB, if my alternative strategy was still faster ... and it is. Sample code in original post has been modified for use in version 4.0
http://www.purebasic.fr/english/viewtopic.php?t=17842
Just wanted to emphasize the "average" process time is significantly decreased using alternative code. It should also be noted that in some instances the Select/Case "filtering" method can produce faster results. Advantages all depend on your application.
Try changing values in both "operation.l" loops from "1 To 26" to "20 To 26" (alternative code is much faster)
Now try changing values in both "operation.l" loops from "1 To 26" to "1 To 6" (alternative code is slightly slower)
Overall "average" is always faster using the alternative code.
Still Faster Than Select-Case
-
Randy Walker
- Addict

- Posts: 1126
- Joined: Sun Jul 25, 2004 4:21 pm
- Location: USoA
Still Faster Than Select-Case
- - - - - - - - - - - - - - - -
Randy
I *never* claimed to be a programmer.
Randy
I *never* claimed to be a programmer.