like everything, it's at runtime you see the effects... but if not solicited a lot, it's makes for a lot of clear branching.
Surely different languages implement each differently and decompiling would be the best way to know what is best... But in RunRev, the benchmarking is the only way to know... Without too much digging in macsbug ;) Whatever happened to YACC for HyperTalk? cheers Xav http://monsieurx.com > -----Original Message----- > From: [EMAIL PROTECTED] > [mailto:[EMAIL PROTECTED] On Behalf Of > Mark Wieder > Sent: Wednesday, May 18, 2005 18:58 > To: 'How to use Revolution' > Subject: Re: Which one is faster ? > > MisterX- > > Wednesday, May 18, 2005, 9:27:22 AM, you wrote: > > M> switch -- note the lack of parameter, now the case > handles if cases! > M> case a=b > M> break > M> end switch > > Switch without a parameter !!??!! I reworked my benchmark > test to try this and found that this effectively slows the > switch statement down to the speed of the nested ifs (i.e., > 20-35% slower), meaning that the pcode is mapped to the same > thing, where every test must be taken in turn. Interesting > technique, though. > > -- > -Mark Wieder > [EMAIL PROTECTED] > > _______________________________________________ > use-revolution mailing list > [email protected] > http://lists.runrev.com/mailman/listinfo/use-revolution > _______________________________________________ use-revolution mailing list [email protected] http://lists.runrev.com/mailman/listinfo/use-revolution
