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

Simplify Backburner Usage #4723

Merged
merged 4 commits into from
Jan 13, 2017
Merged

Conversation

runspired
Copy link
Contributor

@runspired runspired commented Dec 21, 2016

TL;DR spin up less, schedule less, batch more things, cleaner profiles :)

In a query returning 238 records 34 of which are primary records, this resulted in:

  • ember’s run.schedule 105 times => 2x
  • ember’s run.join 2 times => 1x
  • ED’s schedule 274 times => 2x
  • ED’s join 274 times => 2x

Right now this fails on the tests around support for preloading relationships when doing findRecord, digging in on that.

Also includes some additional instrumentation stuff that's part of a different PR + some additions to that instrumentation I'll need to back out.

I appear to have pushed this far enough we get failing tests around pushing hasMany's with invalid values. I think something likely just ended up dropping out of the same run loop, investigating.

There's still a little bit of low hanging fruit on this.

@runspired runspired changed the title [WIP] backburner overhaul Simplify Backburner Usage Dec 21, 2016
@runspired
Copy link
Contributor Author

cc @bmac for final review / merging

@bmac bmac merged commit 06dbc97 into emberjs:master Jan 13, 2017
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