On 12/29/06 10:38 AM, John McKernon at [EMAIL PROTECTED] wrote:

> Here's a bit of code from the middle of my sort, which may give you an idea
> why I've been having trouble finding ways to use use RB's built-in sort
> methods and why this particular sort is so messy.

You have functions which might be contributing to the slowdown. You call
WhichShow.GetVal several times, often with the same values. Calling this
once for each value and storing the result might lead to speed improvements
as there is a small penalty for function calls that can really add up, and
it's a much greater penalty if these methods have a lot of code.

Can you post the code for GetVal and FNAttNum? Also FNUnitRoot, FNUnitFlags,
FNUnitFirst and FNUnitSecond? I'd wager that it's going to be in these
methods that you will find the slowdown.

__________________________________________________________________________
Kem Tekinay                                                 (212) 201-1465
MacTechnologies Consulting                              Fax (914) 242-7294
http://www.mactechnologies.com                        Pager (917) 491-5546

  To join the MacTechnologies Consulting mailing list, send an e-mail to:
           [EMAIL PROTECTED]








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

Reply via email to