• 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: Efficient XML loading [continuation of NSString from mapped NSData thread]
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Efficient XML loading [continuation of NSString from mapped NSData thread]


  • Subject: Re: Efficient XML loading [continuation of NSString from mapped NSData thread]
  • From: Jens Alfke <email@hidden>
  • Date: Thu, 15 May 2008 08:05:39 -0700


On 15 May '08, at 1:36 AM, Jean-Daniel Dupas wrote:

I'm using AE to query large info set from iTunes and don't get any performance issues. But you have to learn how to use AE.

Agreed. (Disclosure: I worked on AppleScript 1.0 and 1.1, and on some of the underlying AppleEvent infrastructure.)


get names of all tracks (using one single AE) is pretty fast.

Yup; most of the performance issues come down to how many round-trips you need. In some cases the application's handling of events is slow, too. Sophisticated AppleEvents with "where..." clauses are effectively database queries, but most applications implement them via linear search. I've constructed single-event commands to iTunes that take a minute or more to return a result, with iTunes chewing up 100% of the CPU the whole time.


It depends what you need. If this it just to get a list a name, it will do the trick, if you want to query more info, you may have to choose an other path.

I was basing my statements on what it would take to get all or most of the info in the XML file, which is basically all available metadata for every single track and playlist; i.e. everything but the album covers.


—Jens

Attachment: smime.p7s
Description: S/MIME cryptographic signature

_______________________________________________

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

References: 
 >Efficient XML loading [continuation of NSString from mapped NSData thread] (From: Keith Duncan <email@hidden>)
 >Re: Efficient XML loading [continuation of NSString from mapped NSData thread] (From: Matt Gough <email@hidden>)
 >Re: Efficient XML loading [continuation of NSString from mapped NSData thread] (From: Jens Alfke <email@hidden>)
 >Re: Efficient XML loading [continuation of NSString from mapped NSData thread] (From: Matt Gough <email@hidden>)
 >Re: Efficient XML loading [continuation of NSString from mapped NSData thread] (From: Jean-Daniel Dupas <email@hidden>)

  • Prev by Date: Re: Getting help...
  • Next by Date: Re: [NSImageView setImage:nil] clarification
  • Previous by thread: Re: Efficient XML loading [continuation of NSString from mapped NSData thread]
  • Next by thread: Can I use NSString classes SYNCHRONOUSLY?
  • Index(es):
    • Date
    • Thread