mirror of
https://github.com/vercel-labs/scriptc.git
synced 2026-11-10 01:56:15 +08:00
Every closed record written by a typed JSON.stringify called scr_jb_try_record_source first, an out-of-line call and table probe for records that almost never keep a source (2% of json-records samples). The record writer now tests the record-sources constant first, so a program without a checked conversion that can keep a source emits no lookup. Where one can, the writer tests the dispose hook inline before calling: keeping a source installs the hook, so a NULL hook means the table is empty, and only a program that has kept a source pays the call. Co-Authored-By: Claude Opus 5.5 <noreply@anthropic.com>