• 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: How to access iTunes using cocoa
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: How to access iTunes using cocoa


  • Subject: Re: How to access iTunes using cocoa
  • From: Jens Alfke <email@hidden>
  • Date: Tue, 26 Jan 2010 12:57:01 -0800


On Jan 26, 2010, at 12:45 PM, has wrote:

I think a big hit comes from the time it takes to evaluate Apple event object specifiers. The cost-benefit tradeoff of having a complex, query-driven IPC system is much poorer on OS X, both in terms of performance and ease of implementation (one of the reason so many apps have lousy AE interfaces is because they're so damn hard to implement). The main bottleneck on OS 7-9 was the OS-level messaging system; in OS X, it's evaluating those complicated messages in the target application process.

Complex AE object queries have the same benefit that SQL queries do: they let the data source perform an efficient search. No one would claim that MySQL's bottleneck is SQL parsing, or that it would be faster to let clients just iterate over table rows one by one! iTunes may not have as much data in it as a big database, bit it's still expensive to iterate over 10,000 tracks via IPC. It would be even worse for scripting the Finder, which operates on orders of magnitude more objects.


—Jens_______________________________________________

Cocoa-dev mailing list (email@hidden)

Please do not post admin requests or moderator comments to the list.
Contact the moderators at cocoa-dev-admins(at)lists.apple.com

Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: How to access iTunes using cocoa
      • From: Michael Ash <email@hidden>
References: 
 >Re: How to access iTunes using cocoa (From: has <email@hidden>)

  • Prev by Date: Re: How to access iTunes using cocoa
  • Next by Date: Re: Garbage Collection Docs Puzzle
  • Previous by thread: Re: How to access iTunes using cocoa
  • Next by thread: Re: How to access iTunes using cocoa
  • Index(es):
    • Date
    • Thread