Re: Sharing a persistent store between iOS and Mac
Re: Sharing a persistent store between iOS and Mac
- Subject: Re: Sharing a persistent store between iOS and Mac
- From: Fritz Anderson <email@hidden>
- Date: Fri, 26 Aug 2011 15:22:33 -0500
On 25 Aug 2011, at 4:20 PM, Jens Alfke wrote:
> I’m not qualified to answer the CoreData question, but it shouldn’t take that long to read 12,000 words out of a text file. A fraction of a second. You may have been doing it using some technique that added a lot of extra overhead, perhaps for memory management.
>
> It sounds like you’re going down a different path now, but if you do decide to go back to the text file approach, the collective wisdom of this list should be able to help you figure out why it’s slow and how to speed it up.
Your advice led me to roll back my premature optimization and fall back to NSDictionary instead of trying to create 12,000 managed objects and saving them at the end of the loop. I'm down to subsecond times.
— F
_______________________________________________
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