• 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: NSPredicate performance considerations
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: NSPredicate performance considerations


  • Subject: Re: NSPredicate performance considerations
  • From: Prachi Gauriar <email@hidden>
  • Date: Sun, 20 Nov 2005 20:37:53 -0500

On Nov 20, 2005, at 7:34 PM, mmalcolm crawford wrote:

Neither of the examples you show involves an explicit fetch, so it's not entirely clear what you're comparing. For the two examples you show, it's *likely* the first will be faster (since filteredArrayUsingPredicate: *may* benefit from internal optimisation) but (your assertion about premature optmisation notwithstanding :-) you should profile to check...

I probably shouldn't have mentioned Core Data at all, since this was really about using predicates. I just wanted to know whether I could be liberal in my use of predicates or if I should only reserve them for special cases. Either way, your answer is encouraging. Obviously for more specific cases, profiling is the way to go.


Fetches are still a bit of a mystery to me, but since I've only been playing Core Data for a day, I'll save those questions for later. Thanks.

-Prachi
_______________________________________________
Do not post admin requests to the list. They will be ignored.
Cocoa-dev mailing list      (email@hidden)
Help/Unsubscribe/Update your Subscription:
This email sent to email@hidden


  • Follow-Ups:
    • Re: NSPredicate performance considerations
      • From: Chris Hanson <email@hidden>
References: 
 >NSPredicate performance considerations (From: Prachi Gauriar <email@hidden>)
 >Re: NSPredicate performance considerations (From: mmalcolm crawford <email@hidden>)

  • Prev by Date: Re: Data modeling, inheritance, and relationships
  • Next by Date: Distrubuted Objects + NSAttributedString passed via dictionary results in archiver exceptions in server process?
  • Previous by thread: Re: NSPredicate performance considerations
  • Next by thread: Re: NSPredicate performance considerations
  • Index(es):
    • Date
    • Thread