Sorting a large field of data

Eric Chatonet eric.chatonet at sosmartsoftware.com
Sun Mar 9 05:43:59 EDT 2008


Hi David,

Just a thought:
Do you put your field into a variable before sorting it and put it  
back when processed?
I suspect also that you modify permanently data in the field itself,  
without locking the screen and this might explain a high CPU usage  
when redrawing.

Le 9 mars 08 à 10:10, David Coker a écrit :

> Hello,
> I have an application that I'm working on that requires that I sort a
> text field containing in some cases, over 10,000 lines during
> processing. While this doesn't seem to big of an issue for a computer
> with more robust specifications, it's a bit problematic on those that
> are not quite as powerful.
>
> Even while using "wait 1 with messages", when I begin the sort routine
> on my smaller machine, it runs the CPU up to 100 percent and any other
> interaction with the program causes the interface elements to
> completely white out. Once the sort is finished, CPU goes back and the
> interface is ready to use again during the remaining operations.
>
> Any ideas as to how to make improvements here?
>
> I'm using Rev 2.5.1 on Win XP
>
> Thanks,
> David

Best regards from Paris,
Eric Chatonet.
----------------------------------------------------------------
Plugins and tutorials for Revolution: http://www.sosmartsoftware.com/
Email: eric.chatonet at sosmartsoftware.com/
----------------------------------------------------------------





More information about the Use-livecode mailing list