If/Then vs. Switch

Lynch, Jonathan BNZ2 at CDC.GOV
Thu Mar 10 11:17:31 EST 2005


In recent experiments with searching 500,000 records in a matrix, I
found that the if/then control structure was a bit faster than the
switch control structure.

In this situation, there was only a single comparison, not a long list
of alternative comparisons (a long list of "else/if/then" components)

Are there situations where switch is faster than if/then?




More information about the Use-livecode mailing list