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: Ronald Vogelaar <enter at rovosoft dot com>
Date: Mon, 28 Feb 2005 07:04:54 +0100
Delivered-to: realbasic-nug at lists dot realsoftware dot com
References: <BE4818DE dot 188AB%maxduepuntozero at yahoo dot it>
Here is one:

http://support.realsoftware.com/listarchives/realbasic-nug/1998-01/msg00329.html

Ronald Vogelaar
http://www.rovosoft.com

Massimo Valle wrote:

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>

_______________________________________________
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>