Repository navigation
Conversation
commit: |
Merging this PR will improve performance by 15.25%1 warning
Performance Changes
Tip Curious why performance improved? Comment Comparing |
Pre-merge check: verify Symbol-keyed augmentations still workThe wrapper change moves
Both rely on
If both pass on this branch, this comment can be resolved. |
|
@cowboyd anything blocking to get this in? 😄 |
We definitely will land it in both branches |
The scope implementation was creating a unique prototype for every single scope instance which caused depotimization of every single scope method. This extracts all the core methods into a single prototype based class that shares a single implementation among all instances, which allows V8 (and presumably other runtimes) to inline the implementation.
83e7bfc to
40a5cb3
Compare
|
🚀 Deploy Preview Ready!
|
Motivation
The scope implementation was creating a unique prototype for every single scope instance which caused depotimization of every single scope method.
Approach
This extracts all the core methods into a single prototype based class that shares a single implementation among all instances, which allows V8 (and presumably other runtimes) to inline the implementation.