GeezerVisonThe World Wide Web, restored to 800 pixels of glory. | ||||||||||||||||||||||||||||||||||||||||||
| Home|About|Gaming cabinet|Archives|How it works|Starter sites | ||||||||||||||||||||||||||||||||||||||||||
GeezerVison is showing github.com — vm: lazily initialize primordials for vm contexts by joyeecheung · Pull Request #31738 · nodejs/node Conversation
Member
Lazily initialize primordials when cross-context support for Fixes: #29842 local benchmark results Checklist
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
Lazily initialize primordials when cross-context support for builtins is needed to fix the performance regression in context creation.
joyeecheung
commented
Member
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. This block contains only indentation change
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
Collaborator
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
joyeecheung
commented
|
|
Benchmark CI: https://ci.nodejs.org/view/Node.js%20benchmark/job/benchmark-node-micro-benchmarks/522/ |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
| Local<Object> exports = Object::New(isolate); | ||
| if (context->Global()->SetPrivate(context, key, exports).IsNothing()) | ||
| if (context->Global()->SetPrivate(context, key, exports).IsNothing() || | ||
| !InitializePrimordials(context)) |
There was a problem hiding this comment.
The reason will be displayed to describe this comment to others. Learn more.
Oops, forgot to handle the return value of InitializePrimordials in the initial commit, fixed.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
🙂 |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Lazily initialize primordials when cross-context support for builtins is needed to fix the performance regression in context creation. PR-URL: #31738 Fixes: #29842 Reviewed-By: Gus Caplan <[email protected]> Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: David Carlier <[email protected]>
|
Landed in e6c2277. Thanks! |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Lazily initialize primordials when cross-context support for builtins is needed to fix the performance regression in context creation. PR-URL: #31738 Fixes: #29842 Reviewed-By: Gus Caplan <[email protected]> Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: David Carlier <[email protected]>
|
@joyeecheung if this should go to |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Lazily initialize primordials when cross-context support for builtins is needed to fix the performance regression in context creation. PR-URL: nodejs#31738 Fixes: nodejs#29842 Reviewed-By: Gus Caplan <[email protected]> Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: David Carlier <[email protected]>
Lazily initialize primordials when cross-context support for builtins is needed to fix the performance regression in context creation. PR-URL: #31738 Fixes: #29842 Reviewed-By: Gus Caplan <[email protected]> Reviewed-By: Anna Henningsen <[email protected]> Reviewed-By: David Carlier <[email protected]>
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
Significant slowdown of createContext and runInContext
There was an error while loading. Please reload this page.