Well that's gratifying news!

On the speed issue you're right I'm sure - I do have to do a lot of work 
in the comparison function involving database access and XML parsing 
(it's a long story!). I might optimize that by prepopulating my objects 
with everything needed for the sort prior to calling sort()

One thing I did notice when I gave it a list of 6k objects to sort was 
it gobbling up memory - it was up to 250MB from 30MB before I got tired 
of waiting and killed it.  Tests with a smaller list show that my exe 
memory usage in TaskManager grows by about 750kB per sort and never goes 
down again.

I don't allocate any memory in my comparison function so I wonder where 
it's going?  Or is it just taskmanager misleading me.....

Dave

Sean Mathews wrote:

>>It works but it aint pretty - surely there's an easier way of 
>>getting at stuff on the form?  If I try to declare the 
>>callback function anywhere where it would 'naturally' get at 
>>stuff on the form the compiler complains that a 'variable required'. 
>>    
>>
>
>I agree, it is awkward but this is the right way to do it.  As to the
>slowness, 
>show us the code and we could probally pick it apart for you.  I see you
>are calling
>.somefunction, and I would bet dollars for doughnuts the problem is in
>the comparison 
>Funtion, as the actual sort routine is very tight, and you can get
>really good results 
>Sorting on simple types.
>
>
>-----------------------------------------------------
>Home page: http://groups.yahoo.com/group/delphi-en/
>To unsubscribe: [EMAIL PROTECTED] 
>Yahoo! Groups Links
>
>
>
> 
>
>
>
>
>  
>



-----------------------------------------------------
Home page: http://groups.yahoo.com/group/delphi-en/
To unsubscribe: [EMAIL PROTECTED] 
Yahoo! Groups Links

<*> To visit your group on the web, go to:
    http://groups.yahoo.com/group/delphi-en/

<*> To unsubscribe from this group, send an email to:
    [EMAIL PROTECTED]

<*> Your use of Yahoo! Groups is subject to:
    http://docs.yahoo.com/info/terms/
 



Reply via email to