mirror of
https://github.com/vercel-labs/scriptc.git
synced 2026-11-09 15:47:33 +08:00
The schema reader scanned every member name with the general string scan, compared it with memcmp, and re-entered the recursive reader for every value. The expected next member's name is now compared directly against the text and its closing quote when the name has at most eight bytes and none that JSON text escapes; other keys keep the general scan and compare names with scr_key_equal. Number, boolean and string members and elements are read in the record and array loops; records and arrays still recurse.