I did a few efficiency tests recently to see what was the best choice when faced with multiple ways to accomplish the same action.
Can anyone think of any other situations where you could use one option over another and what the result would be?
Here are my tests/results:
X in List Vs. List.Find(X)
Results: List.Find(X) is considerably faster
List Association, Two Separate Lists, One Multi Dimensional List
Results: Associative lists were clearly the slowest. What seemed odd was most of the time the multi-dimensional list and dual lists tied, but occasionally the multi-dimensional list would be faster by a short amount of time (usually no more than a tick)
Jul 31 2009, 6:46 pm