realbasic-nug
[Top] [All Lists]

RE: When is CompareRows done?

To: REALbasic Network Users Group <realbasic-nug at lists dot realsoftware dot com>
Subject: RE: When is CompareRows done?
From: "Joseph J. Strout" <joe at realsoftware dot com>
Date: Thu, 29 Aug 2002 15:02:35 -0700
At 4:57 PM -0500 8/29/02, Hadley, Joshua wrote:

My only additional concern is, the way I have implemented it (an instance of
a *subclass* of Timer is instantiated in CompareRows; CompareRows gets
called like hundreds of times during the process of a Sort)

Ow! So your making hundreds of timers. It'd be much more efficient to just have *one* timer, say right there on the Window, and simply reset it in CompareRows (by setting mode=0 and then mode=1).

As you've done it, the timers will indeed go away when their time is up, but it's very wasteful (and I'd expect it to cause some flickering of the cursor as they fight for control of it, too).

Cheers,
- Joe

--
,------------------------------------------------------------------.
|    Joseph J. Strout           REAL Software, Inc.                |
|    joe at realsoftware dot com       http://www.realsoftware.com        |
`------------------------------------------------------------------'


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