• 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: [Slightly OT] Scripting Bridge in Leopard
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

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
References: 
 >Re: [Slightly OT] Scripting Bridge in Leopard (From: Philip Aker <email@hidden>)
 >Re: [Slightly OT] Scripting Bridge in Leopard (From: Christopher Nebel <email@hidden>)
 >Re: [Slightly OT] Scripting Bridge in Leopard (From: Philip Aker <email@hidden>)

  • Prev by Date: Re: [Slightly OT] Scripting Bridge in Leopard
  • Next by Date: Re: Tabs in Terminal.app on Leopard
  • Previous by thread: Re: [Slightly OT] Scripting Bridge in Leopard
  • Next by thread: Re: Tabs in Terminal.app on Leopard
  • Index(es):
    • Date
    • Thread