Files
scriptc/packages
Malte UblandClaude Opus 5.5 e31e2ebe75 Dispatch a constant function table without a fallback when every caller passes one of its keys
When the key is a parameter of a function that never escapes, every call
passes a string literal key of the table, and the body neither assigns the
parameter nor uses arguments, the dispatch needs no arm for other keys. In
nsbench the fallback boxed the Vec probe into a dynamic call, so every Vec
carried the property bag and lived on the heap; without it the workload
inlines into one loop. SCRIPTC_SHAPE_EXHAUSTIVE_TABLES=0 opts out.

nsbench (n=20000, overlay on): 36 -> 8.2 ms (Node about 21 ms).

Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>
2026-10-25 13:10:25 -07:00
..
2026-10-23 20:51:00 -05:00
2026-10-23 20:51:00 -05:00
2026-10-23 20:51:00 -05:00
2026-10-23 20:51:00 -05:00
2026-10-23 20:51:00 -05:00
2026-10-23 20:51:00 -05:00
2026-10-23 20:51:00 -05:00
2026-10-23 20:51:00 -05:00
2026-10-23 20:51:00 -05:00
2026-10-23 20:51:00 -05:00
2026-10-23 20:51:00 -05:00
2026-10-23 20:51:00 -05:00
2026-10-23 20:51:00 -05:00