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

[BUGFIX beta] [PERF] Cleanup Proxy #15150

Merged
merged 1 commit into from
Apr 24, 2017
Merged

[BUGFIX beta] [PERF] Cleanup Proxy #15150

merged 1 commit into from
Apr 24, 2017

Conversation

stefanpenner
Copy link
Member

@stefanpenner stefanpenner commented Apr 17, 2017

  • remove on(‘init, just use the existing init
  • remove redundant meta lookups
  • remove observer (notify proxy change from a unified place, within markObjectAsDirty)
  • remove double tag lookups
  • remove redundant meta guards
  • misc cleanup

@@ -141,6 +135,8 @@ export default Mixin.create({
!this.isController,
{ id: 'ember-runtime.controller-proxy', until: '3.0.0' }
);
return set(content, key, value);
let ret = set(content, key, value);
tagFor(this).contentDidChange();
Copy link
Contributor

Choose a reason for hiding this comment

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

should this just be m._tag.contentDidChange since it is looked up at the start of setUnknownProperty?

@stefanpenner stefanpenner force-pushed the cleanup-proxy branch 2 times, most recently from fa57f34 to f0ecedc Compare April 17, 2017 18:23
@krisselden
Copy link
Contributor

looks good

@stefanpenner
Copy link
Member Author

stefanpenner commented Apr 17, 2017

test failures:

  http://localhost:13141/tests/?skipPackage=container,ember-testing,ember-debug&dist=min&prod=true:85 in global code

TypeError: undefined is not an object (evaluating 'Ember.Debug.registerDeprecationHandler')


  http://localhost:13141/tests/?skipPackage=container,ember-testing,ember-debug&dist=min&prod=true:117


Test failed: global failure

    Failed assertion: ReferenceError: Can't find variable: Ember
http://localhost:13141/tests/?skipPackage=container,ember-testing,ember-debug&dist=min&prod=true:85


Test failed: global failure

    Failed assertion: TypeError: undefined is not an object (evaluating 'Ember.Debug.registerDeprecationHandler')
http://localhost:13141/tests/?skipPackage=container,ember-testing,ember-debug&dist=min&prod=true:117

@stefanpenner
Copy link
Member Author

In chrome (for prod builds) i get a very different set of failures... Strange.

@stefanpenner
Copy link
Member Author

stefanpenner commented Apr 18, 2017

@krisselden I took the approach your recommended instead. And noticed some other related redundant codez.

@stefanpenner
Copy link
Member Author

@krisselden stuff is green, this is ready for your 👀

@krisselden
Copy link
Contributor

update to bug fix beta (get on todays beta)

@stefanpenner stefanpenner changed the title [BUGFIX release] [PERF] Cleanup Proxy [BUGFIX beta] [PERF] Cleanup Proxy Apr 24, 2017
* remove `on(‘init`, just use the existing `init`
* remove redundant meta lookups
* remove observer (notify proxy change from a unified place, within markObjectAsDirty)
* remove double `tag` lookups
* remove redundant meta guards
* misc cleanup
@stefanpenner stefanpenner merged commit e36d849 into master Apr 24, 2017
@stefanpenner stefanpenner deleted the cleanup-proxy branch April 24, 2017 21:46
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.

3 participants