Re: Severe ASOC runtime bug
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