• 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
Re: Slowing Down
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Slowing Down


  • Subject: Re: Slowing Down
  • From: Luther Fuller <email@hidden>
  • Date: Fri, 28 Aug 2009 09:51:42 -0500

First thing this morning, I ran another series of tests. Here's the result ...

1.8, 1.7, 1.7, 1.8, 1.6, 1.6, 1.5, 1.3, Relaunch Finder, 1.9, 1.9

The problem is still there. Then I realized that I had (carelessly) written my main code in the run handler. There are many variables and putting them in the run handler means that all of them are global. (Bad)

I moved my main code into a handler named 'main' and used this new run handler ...

	on run
		my main()
	end run

Now, all variables are local instead of global. I ran a second series of tests ...

1.7, 1.7, 1.7, Relaunch Finder, 1.8, 2.0, 1.9, 1.8, 1.6, 1.8, 1.7

This seems to be an improvement, but I don't think it's conclusive.
When the numb wears off, I'll run another series of mind-numbing tests and report the results.


_______________________________________________
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
References: 
 >Slowing Down (From: Luther Fuller <email@hidden>)

  • Prev by Date: Re: How do you display the IP Address?
  • Next by Date: Snow Leopard AppleScript Release Notes
  • Previous by thread: Re: Slowing Down
  • Next by thread: Re: Slowing Down
  • Index(es):
    • Date
    • Thread