Fastest way to select based on id number
BlitzMax Forums/BlitzMax Programming/Fastest way to select based on id number
| ||
If depending on the id number, I want to return a particular object, is it faster to use a Select-Case statement, or to put them in a map ordered by a string id? If Select-Case converts to a chained If statement, theoretically a map would be faster! And more convenient. |
| ||
Faster whould be to use an Array, and make the ID the index of the array (if possible) |
| ||
Why didn't I think of that! Thanks, Ziggy! |