Slowing Down
Slowing Down
- Subject: Slowing Down
- From: Luther Fuller <email@hidden>
- Date: Thu, 27 Aug 2009 14:17:29 -0500
I have a script that contains something like this ...
set folderList to (folders of outerFolder) as alias list
repeat with aFolder in folderList
set fileList to (files of aFolder) as alias list
repeat with aFile in fileList
-- do stuff
end repeat
end repeat
I have also included code to calculate the number of files processed
per second.
Each time I run this, a batch of hundreds of files are processed.
Timing looks like this ...
batch 1 ... 1.5 files/sec
batch 2 ... 1.4 files/sec
batch 3 ... 1.2 files/sec
batch 4 ... 0.9 files/sec
Restart
batch 5 ... 1.8 files/sec
If I continue running batches without restarting, it gets really,
really slow.
Anyone know what's happening, here?
_______________________________________________
Do not post admin requests to the list. They will be ignored.
AppleScript-Users mailing list (email@hidden)
Help/Unsubscribe/Update your Subscription:
Archives: http://lists.apple.com/archives/applescript-users
This email sent to email@hidden