Memory usage in AppleScript... How to prevent out of memory errors?
Memory usage in AppleScript... How to prevent out of memory errors?
- Subject: Memory usage in AppleScript... How to prevent out of memory errors?
- From: Simon Forster <email@hidden>
- Date: Sun, 17 Jun 2001 09:50:14 +0100
Hope someone can help me here...
I have a relatively simple script which downloads a bunch of data, deletes
any returns in the data and concatenates it into one large file. The script
works fine for small quantities of data (314 records, 195,131 bytes) but
consistently returns "Error -108. Not enough memory to complete this
operation" when run with larger data sets (just shy of 2,500 records). I
have thrown silly amounts of memory at the script application but this
doesn't help.
I've spent some time optimising the script and have played around with
writing out the data at different times etc. The optimising has worked quite
well (down from 12 minutes for processing the 314 records data set to less
than 1 minute) but the memory error persists.
Also, the script application has quite a large memory footprint after
running - 516 K having run against the 314 records data set. The only
properties are for cr, lf, crlf and the folder path to the script
application. So why such a large file after running? Would the script be
remembering the data set? If so, why? It's NOT a property.
Anyway, it seems that the script is failing when it comes to write the
finished product out to disk. I'll keep on checking it but would appreciate
any pointers on what could be causing problems here.
Thank you
Simon Forster
________________________________________________
LDML Ltd, 4/5 Hazlitt Mews, London, W14 0JZ, UK
<tel int="+44 20 7602 9370" uk="020 7602 9370">
<fax int="+44 20 7371 6662" uk="020 7371 6662">
<
mailto:email@hidden>
________________________________________________