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 release] Remove wasted DK's for template and layout. #12026

Merged
merged 1 commit into from
Aug 8, 2015

Conversation

rwjblue
Copy link
Member

@rwjblue rwjblue commented Aug 8, 2015

We used to observe and rerender properly when template or layout changed. As of 1.13 we do not rerender any longer, and the additional dependent keys cause extra unusable observers (which add up perf wise).

It is unclear if the change to make layout not rerender is a regression, but we certainly shouldn't be paying for observation when we can't take advantage of it.

We used to observe and rerender properly when `template` or `layout`
changed. As of 1.13 we do not rerender any longer, and the additional
dependent keys cause extra unusable observers (which add up perf wise).

It is unclear if the change to make `layout` not rerender is a
regression, but we certainly shouldn't be paying for observation when we
can't take advantage of it.
@rwjblue
Copy link
Member Author

rwjblue commented Aug 8, 2015

This is the first step in a suggestion by @krisselden to avoid creating CP's (and geting them) for template and layout when they are unused 90% of the time. The goal would be to make these properties PAYGO.

@stefanpenner
Copy link
Member

do we actually want these to be volatile? I would imagine them working as getter/setters with no caching would be accurate to our use-case. Or which use-case may i be missing.

@rwjblue
Copy link
Member Author

rwjblue commented Aug 8, 2015

Discussed with @stefanpenner in chat. We are going to land this without volatile now (targetting release), then update to volatile() after #11983 lands (targetted at beta branch).

rwjblue added a commit that referenced this pull request Aug 8, 2015
[BUGFIX release] Remove wasted DK's for `template` and `layout`.
@rwjblue rwjblue merged commit 7c00823 into emberjs:master Aug 8, 2015
@rwjblue rwjblue deleted the remove-dep-keys branch August 8, 2015 23:35
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