realbasic-nug
[Top] [All Lists]

Re: Performance and faster idioms

To: REALbasic-NUG <realbasic-nug at lists dot realsoftware dot com>
Subject: Re: Performance and faster idioms
From: Massimo Valle <maxduepuntozero at yahoo dot it>
Date: Mon, 28 Feb 2005 00:39:58 +0100
Delivered-to: realbasic-nug at lists dot realsoftware dot com
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>

<Prev in Thread] Current Thread [Next in Thread>