Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fixes CoreData Threading Warnings #322

Merged
merged 2 commits into from
Jul 28, 2014

Conversation

jleandroperez
Copy link
Contributor

Fixes #305

NSManagedObjectContext.userInfo usage should be wrapped up by performBlock: calls, with a considerable performance impact. Let's bring back the old school object-association mechanism.

Due to Xcode 6 CoreData threading violations, each userInfo call should
be wrapped up by a performBlock call.

This should be executed by every single NSManagedObject that gets
faulted / inserted into any context, and has a considerable performance
impact.

Let’s bring back the old school obc_setAssociatedObject, which was the
default mechanism in Simperium Mk 0.5.0
jleandroperez added a commit that referenced this pull request Jul 28, 2014
@jleandroperez jleandroperez merged commit 27850ac into develop Jul 28, 2014
@jleandroperez jleandroperez deleted the issues/305-fixes-threading-warnings branch July 28, 2014 14:02
@jleandroperez jleandroperez added this to the v0.6.7 milestone Jul 28, 2014
@jleandroperez jleandroperez self-assigned this Jul 28, 2014
@jleandroperez jleandroperez mentioned this pull request Aug 7, 2014
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

SPCoreDataStorage: setBucketList should use performBlock
1 participant