on 27-02-2005 19:14, Mars Saxman wrote:
>
> I have heard this "150,000%" number before, and I am extremely skeptical;
> Select Case and If-Then boil down to almost the same thing internally, and I
> cannot see anything that would account for such a dramatic performance
> penalty. The only difference I can think of actually points in Select's
> favor, since it only has to evaluate the test expression once.
>
I was always convinced that the select-case is faster and I'm pretty sure in
past someone from RS (don't remember who) suggested me this fact.
So I just made a very simple test and the if-then seems 3 times faster than
select case.
Massimo Valle
_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>
Search the archives of this list here:
<http://support.realsoftware.com/listarchives/lists.html>
|