Which one is faster ?

Lynch, Jonathan bnz2 at cdc.gov
Wed May 18 11:28:21 EDT 2005


I ran a test on 500,000 records, testing between a single if-then vs. a
single switch, and I found that the if-then was faster. It was
noticeably faster, but not hugely faster. I do not remember the exact
difference - sorry.

However, I do not know if switch has an advantage with complex,
multiple-choice decisions.

-----Original Message-----
From: use-revolution-bounces at lists.runrev.com
[mailto:use-revolution-bounces at lists.runrev.com] On Behalf Of jbv
Sent: Wednesday, May 18, 2005 11:26 AM
To: How to use Revolution
Subject: Which one is faster ?

Hi list,

Which option is faster : switch staements or nested if-then-else ?

Has anyone run tests on this ?

Thanks,
JB


_______________________________________________
use-revolution mailing list
use-revolution at lists.runrev.com
http://lists.runrev.com/mailman/listinfo/use-revolution




More information about the use-livecode mailing list