• 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: Core Data dog-slow when using first time after boot
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: Core Data dog-slow when using first time after boot


  • Subject: Re: Core Data dog-slow when using first time after boot
  • From: "I. Savant" <email@hidden>
  • Date: Wed, 19 Aug 2009 13:18:46 -0400


On Aug 19, 2009, at 1:14 PM, Ruotger Skupin wrote:

I debugged it with some Snow Leopard magic and found out, that firing faults is very slow the first time after boot. When I use - [NSArray filteredArrayUsingPredicate:] the fault firing is killing me.

So I recoded it to fetch everything upfront with [fetchRequest setReturnsObjectsAsFaults:NO]; and the fetching of 5000 objects still takes more than 15 seconds. On second launch that's about 3 seconds. This seems to be slow.

Hmm ... time to hit the books if you haven't already:

http://developer.apple.com/documentation/Cocoa/Conceptual/CoreData/Articles/cdPerformance.html#//apple_ref/doc/uid/TP40003468

  Have you tried anything suggested there?

--
I.S.



_______________________________________________

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: Core Data dog-slow when using first time after boot
      • From: Ruotger Skupin <email@hidden>
References: 
 >Core Data dog-slow when using first time after boot (From: Ruotger Skupin <email@hidden>)
 >Re: Core Data dog-slow when using first time after boot (From: Nick Zitzmann <email@hidden>)
 >Re: Core Data dog-slow when using first time after boot (From: Ruotger Skupin <email@hidden>)

  • Prev by Date: Re: Get size of folder
  • Next by Date: Re: Get size of folder
  • Previous by thread: Re: Core Data dog-slow when using first time after boot
  • Next by thread: Re: Core Data dog-slow when using first time after boot
  • Index(es):
    • Date
    • Thread