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

[core-object] Delay init until after construction #16795

Merged

Conversation

pzuraq
Copy link
Contributor

@pzuraq pzuraq commented Jul 6, 2018

Implements RFC 337, delaying initialization of create properties until after object construction. This PR is currently meant to be a PoC, and is dependent on the RFC being merged. It'll also help to inform certain behaviors, like for instance whether or not we should deprecate new EmberObject() altogether, or just deprecate passing in init properties.

There are two commits on this branch currently, one in which chains are enabled during the initial construction phase, then disabled when the init properties are applied, and one where they are disabled throughout construction. Both have been benchmarked against master, which shows a minor regression in terms of speed.

results.pdf
results.json.txt

@pzuraq pzuraq force-pushed the feat/delay-init-until-after-construction branch 2 times, most recently from 8abd40d to cb408aa Compare July 10, 2018 22:19
@pzuraq pzuraq mentioned this pull request Aug 30, 2018
24 tasks
@pzuraq pzuraq force-pushed the feat/delay-init-until-after-construction branch from cb408aa to e530f3d Compare September 11, 2018 23:24
Implements RFC 337, delaying initialization of create properties until
after object construction.
@pzuraq pzuraq force-pushed the feat/delay-init-until-after-construction branch from e530f3d to 9a817d4 Compare September 24, 2018 18:00
@pzuraq pzuraq changed the title [WIP][core-object] Delay init until after construction [core-object] Delay init until after construction Sep 24, 2018
@rwjblue rwjblue merged commit 0554471 into emberjs:master Sep 26, 2018
@kennethlarsen kennethlarsen mentioned this pull request Nov 7, 2018
3 tasks
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