Instead of writing to a file each time, write to a global variable, then write 
out the variable to a file at the end of processing. 

Bob


On Sep 15, 2011, at 4:40 AM, Andrew Henshaw wrote:

> Hi,
> 
> Ive got an application that quite happily runs along at an acceptable speed 
> on my Macs,  but on Windows systems it seems to struggle.
> 
> Im trying to pin down the parts of the code that I need to look at so I can 
> work out what is happening.  My best guess would be the interaction with the 
> sqllite database,  but thats just a guess!
> 
> Does anyone have any suggestions as to the best way to do this.
> 
> Im thinking of writing a command I can call to simple log some text and the 
> milliseconds to a file,  so I can insert calls to the command through the 
> various code and track exactly what time each are called,  but something in 
> the back of my head says this might not be the best solution as the file 
> write will also take time.
> 
> Is there a best practice way to do something like this,  im afraid I started 
> life programming on a Sinclair ZX80 and my skills have probably not 
> progressed much!!
> 
> Andy
> 
> 
> _______________________________________________
> use-livecode mailing list
> use-livecode@lists.runrev.com
> Please visit this url to subscribe, unsubscribe and manage your subscription 
> preferences:
> http://lists.runrev.com/mailman/listinfo/use-livecode


_______________________________________________
use-livecode mailing list
use-livecode@lists.runrev.com
Please visit this url to subscribe, unsubscribe and manage your subscription 
preferences:
http://lists.runrev.com/mailman/listinfo/use-livecode

Reply via email to