Re: [Slightly OT] Scripting Bridge in Leopard
Re: [Slightly OT] Scripting Bridge in Leopard
- Subject: Re: [Slightly OT] Scripting Bridge in Leopard
- From: Christopher Nebel <email@hidden>
- Date: Thu, 1 Nov 2007 18:22:31 -0700
On Nov 1, 2007, at 6:02 PM, Philip Aker wrote:
On 2007-01-11, at 17:06, Christopher Nebel wrote:
This follows on Chris Nebel's example by eliminating the leaks...
Alternatively, compile with garbage collection turned on, like I did.
Oh sly.
But I've been hearing that CG has a performance hit of 10-15%.
What's your experience with that?
It depends on what you're doing. 10% is typical, though certain usage
patterns can be better or worse. That said, that's 10% on compute
time, and your average application is not compute-bound -- either it's
I/O bound, or the overall compute time is small enough that 10% isn't
noticeable.
As usual, the first rule for optimization is "Ask if it needs to be
faster." The second rule is "Measure where the performance is
going." Odds are, the garbage collection is still worth it.
--Chris Nebel
AppleScript Engineering
_______________________________________________
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