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

Avoid invoking migration table look up for all objects #1983

Merged
merged 2 commits into from Feb 11, 2016
Merged

Conversation

hkaiser
Copy link
Member

@hkaiser hkaiser commented Feb 10, 2016

Avoid invoking migration table look up for objects which don't support migration. This introduces a small optimization avoiding to look up an id in the table of migrated objects for components which do not support migration in the first place. This should remove the slight performance regression we saw after merging the new migration code.

This also introduces a new trait: traits::component_supports_migration<Component>

@sithhell
Copy link
Member

LGTM

sithhell added a commit that referenced this pull request Feb 11, 2016
Avoid invoking migration table look up for all objects
@sithhell sithhell merged commit 0cae2f6 into master Feb 11, 2016
@sithhell sithhell deleted the migration branch February 11, 2016 05:50
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants