Re: NSPredicate performance considerations
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