-
-
Notifications
You must be signed in to change notification settings - Fork 1.3k
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] flatten DS.Model to avoid multi-extend, expensive reopens, and extra mixin detection #4701
Conversation
2c594f2
to
61a962c
Compare
Obviously a secondary benefit of all this is a much cleaner flame chart for spotting where to optimize things in the future as well. |
} | ||
}, | ||
|
||
//Calculate the inverse, ignoring the cache |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I think jscs usually complains about a lack of space
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
But this is probably old code
@runspired thanks for the annotated screenshot, it is very easy to now identify exactly what you saw :) |
Replaces #4667 with a version that takes more commits so we preserve more of the history of where code came from.
Perf
We see some improvement in both the areas we expect (initial lookup, materialization), there may also be a modest 2-5% improvement in several other areas but I'm skeptical. I want to run more test runs on this, and I'd like @stefanpenner to put it in our app with me tomorrow and measure in the real world.
initial-modelFor-lookup
Master
PR
InternalModel.getRecord (238 total calls)
Master
PR