IIRC, select/case evaluates each case one at a time, and quits as soon
as it finds a match (IOW, it ignores the rest of the unused cases),
whereas if/else evaluates the entire expression first, before making a
So if you have a lot of cases to evaluate, I would expect select/case
to be faster for the cases at the top of the list...
...but I could be wrong about all of that. :)
On 6/6/05, Randy Phillips <[hidden email]> wrote:
> I think this has been discussed before but are there any performance
> advantages to select/case statements versus if/else statements?