• 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: Longer and longer...
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Longer and longer...


  • Subject: Re: Longer and longer...
  • From: KOENIG Yvan <email@hidden>
  • Date: Thu, 9 Sep 2010 20:56:32 +0200

Le 9 sept. 2010 à 20:33, Alex Zavatone a écrit :

>
> If you're running it from the AS Editor I'd check and make sure that your variables are being reset.  I think you are assuming a too much here.
>
> On Sep 9, 2010, at 1:30 PM, Gil Dawson wrote:
>
>> Thanks for your suggestions!  Sorry it took me so long to get back to you, but I was called away to another project.
>>
>> To review:  I have a long-running script which I recompile and run over and over.  Each time it runs slower, until I quit and relaunch AppleScript Editor.  Smile does not do this, only Script Editor.
>>
>>> Try clearing your variables in your init routines.
>>
>>
>>> May you check if you are using some properties ?
>>
>> I forgot to mention in my original post that the script is recompiled each time I run it. I believe that recompiling will clear all variables and reset properties, n'est pas?
>
> Don't think so.
>
>>
>>> open Activity monitor and […see whether…] your script is using more and more memory as you go.
>>


(1) As far as I know, Smile allocate a larger space to the Stack.
(2) As I already wrote, it would be useful to explicitly clear your properties.
(3) If I remember well, when we use script objects, Applescript stores the script itself and many infos about its environment. This is a serious memory eater.
I guess that it would be fine to free these items too.

Yvan KOENIG (VALLAURIS, France) jeudi 9 septembre 2010 20:56:29
 _______________________________________________
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: 
 >OT: Yahoo web mail (From: Doug McNutt <email@hidden>)
 >Longer and longer... (From: Gil Dawson <email@hidden>)
 >Re: Longer and longer... (From: Gil Dawson <email@hidden>)
 >Re: Longer and longer... (From: KOENIG Yvan <email@hidden>)
 >Re: Longer and longer... (From: Gil Dawson <email@hidden>)
 >Re: Longer and longer... (From: Alex Zavatone <email@hidden>)

  • Prev by Date: Re: Longer and longer...
  • Next by Date: How can I differentiate a jump drive folder from a HD folder of the same name?
  • Previous by thread: Re: Longer and longer...
  • Next by thread: Re: Longer and longer...
  • Index(es):
    • Date
    • Thread