-
-
Notifications
You must be signed in to change notification settings - Fork 158
perf(codegen): brand claimed-array receivers before the plain tier; gate the guarded store's layout note inline (wolf-ecs -3.2%/-3.7%, -2.3%/-2.0%) #8890
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
Closed
proggeramlug
wants to merge
5
commits into
PerryTS:main
from
proggeramlug:perf/ecs-claimed-receiver-brand
Closed
Changes from all commits
Commits
Show all changes
5 commits
Select commit
Hold shift + click to select a range
c32643c
perf(codegen): brand claimed-array receivers before the guarded plain…
fba91cc
perf(codegen): gate the guarded store's layout note on the inline cla…
8ef56aa
changelog: fragment for #8890
7295136
runtime(array): drop the prototype-index note helpers duplicated by t…
e216004
runtime(array): restore #8885's strict number-store lane beside the d…
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
11 changes: 11 additions & 0 deletions
11
changelog.d/8890-claimed-receiver-brand-gated-layout-note.md
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -0,0 +1,11 @@ | ||
| Array performance: an erased Array declaration admits object-backed Array | ||
| subclasses and typed arrays, so a canonical integer key on such a receiver now | ||
| brands the receiver once and takes the receiver-unknown numeric read tiers | ||
| (inline typed-array read, dense-subclass shape cache, complete dispatcher) | ||
| instead of the plain-array tier's out-of-line feedback fallback; and the | ||
| guarded in-bounds element store decides inline — with the exact | ||
| pointer-bearing classification of the old and new values plus the array's | ||
| element-shape bit — whether the GC layout note has any work before calling it. | ||
| wolf-ecs (noctjs/ecs-benchmark) on the Mac mini reference box: add/remove | ||
| -3.2% then -2.3%, entity-cycle -3.7% then -2.0%, each 11/11 paired wins, | ||
| semantics probes byte-identical to Node. |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
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.
🗄️ Data Integrity & Integration | 🟡 Minor | ⚡ Quick win
🔎 Supported by static analysis
🏁 Script executed:
Repository: PerryTS/perry
Length of output: 50369
🏁 Script executed:
Repository: PerryTS/perry
Length of output: 48583
🏁 Script executed:
Repository: PerryTS/perry
Length of output: 50369
🏁 Script executed:
Repository: PerryTS/perry
Length of output: 50370
🏁 Script executed:
Repository: PerryTS/perry
Length of output: 41334
🏁 Script executed:
Repository: PerryTS/perry
Length of output: 33456
Preserve the inline tier for boxed INT32 indices.
lower_inline_dyn_typed_array_getapplies floating-point guards to rawidx_d, so a boxed INT32 index misses the inline load and usesjs_packed_arraylike_index_get. Pass the decodedidx_i32in the expected representation.🤖 Prompt for AI Agents