realbasic-nug
[Top] [All Lists]

Re: Slow Listboxes

To: REALbasic NUG <realbasic-nug@lists.realsoftware.com>
Subject: Re: Slow Listboxes
From: Frank Bitterlich <bitterlich2@gsco.de>
Date: Thu, 26 Feb 2009 22:27:48 +0100
Authentication-results: mx.google.com; spf=neutral (google.com: 74.124.194.228 is neither permitted nor denied by best guess record for domain of realbasic-nug-bounces@lists.realsoftware.com) smtp.mail=realbasic-nug-bounces@lists.realsoftware.com
Delivered-to: listarchive@realsoftware.com
In-reply-to: <D4CA7E04-94E4-4890-AF87-DDE004483400@mac.com>
References: <6D601607-8A05-41AF-9FE4-D22102080EC4@mac.com> <F4A04EFB-FF75-4560-9DF7-6F42265D2A5E@mac.com> <D4CA7E04-94E4-4890-AF87-DDE004483400@mac.com>
Reply-to: REALbasic NUG <realbasic-nug@lists.realsoftware.com>
Sender: realbasic-nug-bounces@lists.realsoftware.com
I found that in many situations it's more efficient to first Split() a string instead of using nthField().

And a good way to absolutely kill your app's performance is code like this:

for i = 1 to CountFields(s, delimiter)
....
next

.... because that will re-scan the whole string with every iteration. Better cache it before the loop.

Cheers,
   Frank+++


Am 26.02.2009 um 22:05 schrieb Stan Busk:

Hi,

I respond to myself. Listbox has nothing to do. It is nthField function actually that is slower as before. I will fill a bug report on this.

Stan

Hi,

It looks like RB2008r5 listboxes are around 5 times slower than before and speed dramatically slowdown as you add more entries. It was already the case before but now it is worse.

Stan

Hi,

It is just me or RB2008r5 listboxes are slower than before. I just found out today they are much much slower than I was used to. Before calculating timings I would like to know if somebody else have the same feeling as me...



--

Günter Schmidt GmbH
Frank Bitterlich             eMail: bitterlich@gsco.de
Ben-Gurion-Ring 21           WWW:   http://www.gsco.de/
D-60437 Frankfurt            Tel.:  069 / 156809-29
GERMANY                      Fax:   069 / 156809-28
Geschäftsführer: Jürgen Hartwich
AG Frankfurt am Main, HRB 76504 - USt.-ID: DE235219624






_______________________________________________
Unsubscribe or switch delivery mode:
<http://www.realsoftware.com/support/listmanager/>

Search the archives:
<http://support.realsoftware.com/listarchives/lists.html>


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