Repository navigation
[TS] Evaluate a higher capacity for tracked Array.map - #685
Draft
CaelmBleidd wants to merge 1 commit into
Draft
CaelmBleidd wants to merge 1 commit into
CaelmBleidd wants to merge 1 commit into
Conversation
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
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Scope
Evaluate a 64-element limit for modeled
Array.mapwhen the receiver has a concrete length and tracked own slots. The source algorithm still reads slot presence before each callback invocation and snapshots the original length. The existing 16-element bound applies to other operations and to receivers with only a dense-shape proof or a symbolic length.This draft depends on #625. Its model catalog adds two private primitives to the
mapdependency closure. The review branch leaves the frozen experiment profiles as recorded.Results
The original R5 overlay comparison held the program, coverage denominator, runtime profile and 30-second search budget fixed for three paired runs on
RecFunExpr. At the diagnosedmapcall site, residual fallback counts were 283, 823, and 625 under the 16-element bound and zero under the 64-element bound. Each arm in every pair entered the same 140 of 229 IR points. This establishes that the cap caused those fallbacks and provides no coverage improvement on this subject.The extracted branch passed 78 targeted tests and both Detekt checks. Node.js replay checks native behavior for holes, explicit
undefined, callback mutation, lengths 64 and 65, and another array routine. The exact catalog test exercises the dependency closure with onlyts.array.mapselected.