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

Perf: Bugfix: Don't read before write for anything with a descriptor #19504

Draft
wants to merge 3 commits into
base: main
Choose a base branch
from

Conversation

runspired
Copy link
Contributor

Mostly opening this to see what tests fail. Currently when using set or EmberObject.set ember will first read a prop before writing to it unless that property happens to have a COMPUTED_SETTER which is only true for things that utilized tracked or computed. This causes performance issues and bugs when read before write is not expected.

Copy link
Member

@rwjblue rwjblue left a comment

Choose a reason for hiding this comment

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

Hmm, is this still something to move forward @runspired?

@rwjblue rwjblue marked this pull request as draft May 24, 2021 15:00
@runspired
Copy link
Contributor Author

It's something I feel we should change but it doesn't seem we have a clear path to changing it. Wouldn't might the thoughts of @pzuraq

@kategengler
Copy link
Member

Is this still relevant? It is a draft PR

@runspired
Copy link
Contributor Author

its relevant until starbeam, though I'm not sure what the path forward is. @NullVoxPopuli may have a better idea he's been poking around those parts

@NullVoxPopuli
Copy link
Contributor

I don't know what the impact of this PR is, as I have no clue about the older get/set patterns anymore. (I jumped on tracked when 3.13 was canary).

Can you rebase?

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.

4 participants