• Open Menu Close Menu
  • Apple
  • Shopping Bag
  • Apple
  • Mac
  • iPad
  • iPhone
  • Watch
  • TV
  • Music
  • Support
  • Search apple.com
  • Shopping Bag

Lists

Open Menu Close Menu
  • Terms and Conditions
  • Lists hosted on this site
  • Email the Postmaster
  • Tips for posting to public mailing lists
Slowing Down
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
  • Follow-Ups:
    • Re: Slowing Down
      • From: Axel Luttgens <email@hidden>
    • Re: Slowing Down
      • From: Jeff Porten <email@hidden>
  • Prev by Date: Re: How do you display the IP Address?
  • Next by Date: Re: Detect if Excel 2008 document contains hidden rows
  • Previous by thread: Scripting Mail.app Mailbox Pane?
  • Next by thread: Re: Slowing Down
  • Index(es):
    • Date
    • Thread