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 extra meta lookups in Ember.set. #17058

Merged
merged 1 commit into from
Dec 8, 2018
Merged

Conversation

bekzod
Copy link
Contributor

@bekzod bekzod commented Oct 8, 2018

No description provided.

@@ -76,11 +76,11 @@ export function set(obj: object, keyName: string, value: any, tolerant?: boolean
return setPath(obj, keyName, value, tolerant);
}

let possibleDesc = descriptorFor(obj, keyName);
let meta = peekMeta(obj);
Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

if we call peekMeta(obj) early it can be reused both in descriptorFor and notifyPropertyChange

@rwjblue rwjblue changed the title reuse meta in property_set Avoid extra meta lookups in Ember.set. Dec 8, 2018
@rwjblue rwjblue merged commit 8713a65 into emberjs:master Dec 8, 2018
@rwjblue
Copy link
Member

rwjblue commented Dec 8, 2018

Thanks @bekzod!

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants