• 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: Severe ASOC runtime bug
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Severe ASOC runtime bug


  • Subject: Re: Severe ASOC runtime bug
  • From: Dave <email@hidden>
  • Date: Thu, 20 Jan 2011 19:42:49 -0600

On Jan 20, 2011, at 12:26 PM, Alex Zavatone wrote:

> Is there any other data structure you could use?

I could try using an AppleScript record in place of NSMutableDictionary, but AppleScript does not support obtaining a list of keys in a record. Since I need that list often I would have to keep converting the record to an NSDictionary to get the keys, an overhead my program would not tolerate. (I'm assuming here that the scripting bridge would create a new NSDictionary [or NSMutableDictionary] object every time I needed the keys.)

> Also, do you know the size of each instantiated object?

Yes, I was curious about this too. I ran a series of tests using an AppleScript list to hold new object instances of a script having no properties or run handlers. Examining memory usage shown by Activity Monitor, I got a ballpark figure that each instance required about 8.3K of memory. I assume a standard Obj-C empty class would be negligible in size compared to this, and if so then ASOC is requiring a great deal of overhead to support a script class.

-- dave _______________________________________________
Do not post admin requests to the list. They will be ignored.
applescriptobjc-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:

This email sent to email@hidden

  • Follow-Ups:
    • Re: Severe ASOC runtime bug
      • From: Alex Zavatone <email@hidden>
References: 
 >Severe ASOC runtime bug (From: Dave <email@hidden>)
 >Re: Severe ASOC runtime bug (From: Terence Heaford <email@hidden>)
 >Re: Severe ASOC runtime bug (From: Dave <email@hidden>)
 >Re: Severe ASOC runtime bug (From: Alex Zavatone <email@hidden>)

  • Prev by Date: Re: Severe ASOC runtime bug
  • Next by Date: Re: Severe ASOC runtime bug
  • Previous by thread: Re: Severe ASOC runtime bug
  • Next by thread: Re: Severe ASOC runtime bug
  • Index(es):
    • Date
    • Thread