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 — esm: avoid dictionary-mode objects in import() by mcollina · Pull Request #67554 · nodejs/node Conversation
Member
Import attributes were created in C++ with Build the attributes from an ordinary object with its prototype set to null, This is independent of #67552, and the two confidence improvement accuracy (*) (**) (***) esm/esm-loader-import.js specifier='./relative-existing.js' n=10000 *** 7.24 % ±1.13% ±1.50% ±1.96% esm/esm-loader-import.js specifier='./relative-nonexistent.js' n=10000 *** 1.98 % ±1.02% ±1.36% ±1.77% esm/esm-loader-import.js specifier='data:text/javascript,{i}' n=10000 1.27 % ±1.82% ±2.42% ±3.16% esm/esm-loader-import.js specifier='node:os' n=10000 *** 7.83 % ±1.36% ±1.81% ±2.36% esm/esm-loader-import.js specifier='node:prefixed-nonexistent' n=10000 *** 7.27 % ±1.49% ±1.99% ±2.59% Refs: #67552 AI Generated.
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactionsImport attributes were created in C++ with v8::Object::New() and a
null prototype, once per module request and once per import() call.
Every import() call also created a `{ __proto__: null }`
diagnostics_channel context, which was discarded when module.import
had no subscribers. V8 creates all of these in dictionary mode.
Build the attributes from an ordinary object with its prototype set to
null, and only create the trace context when there are subscribers.
Signed-off-by: Matteo Collina <[email protected]>
Collaborator
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
gurgunday
approved these changes
Member
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. lgtm
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page. All reactions
jsumners-nr
approved these changes
aduh95
approved these changes
Collaborator
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
Member
All reactions
Sorry, something went wrong. Uh oh!
There was an error while loading. Please reload this page.
legendecas
approved these changes
|
There was an error while loading. Please reload this page.
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@ ## main #67554 +/- ## ========================================== - Coverage 90.68% 90.67% -0.01% ========================================== Files 800 800 Lines 280556 281000 +444 Branches 54179 54293 +114 ========================================== + Hits 254412 254795 +383 - Misses 16262 16299 +37 - Partials 9882 9906 +24
🚀 New features to boost your workflow:
|
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Commit Queue failedThe pull request was removed from the Commit Queue and labeled
commit-queue-failed
Full Commit Queue output |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
There was an error while loading. Please reload this page.
|
Landed in ce44266 |
Sorry, something went wrong.
There was an error while loading. Please reload this page.
Import attributes were created in C++ with v8::Object::New() and a
null prototype, once per module request and once per import() call.
Every import() call also created a `{ __proto__: null }`
diagnostics_channel context, which was discarded when module.import
had no subscribers. V8 creates all of these in dictionary mode.
Build the attributes from an ordinary object with its prototype set to
null, and only create the trace context when there are subscribers.
Signed-off-by: Matteo Collina <[email protected]>
PR-URL: #67554
Refs: #67552
Reviewed-By: Gürgün Dayıoğlu <[email protected]>
Reviewed-By: Antoine du Hamel <[email protected]>
Reviewed-By: Chengzhong Wu <[email protected]>
Reviewed-By: James M Snell <[email protected]>
Import attributes were created in C++ with v8::Object::New() and a
null prototype, once per module request and once per import() call.
Every import() call also created a `{ __proto__: null }`
diagnostics_channel context, which was discarded when module.import
had no subscribers. V8 creates all of these in dictionary mode.
Build the attributes from an ordinary object with its prototype set to
null, and only create the trace context when there are subscribers.
Signed-off-by: Matteo Collina <[email protected]>
PR-URL: nodejs#67554
Refs: nodejs#67552
Reviewed-By: Gürgün Dayıoğlu <[email protected]>
Reviewed-By: Antoine du Hamel <[email protected]>
Reviewed-By: Chengzhong Wu <[email protected]>
Reviewed-By: James M Snell <[email protected]>
There was an error while loading. Please reload this page.
Successfully merging this pull request may close these issues.
There was an error while loading. Please reload this page.