mirror of
https://github.com/vercel-labs/scriptc.git
synced 2026-11-02 07:43:42 +08:00
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>