Skip to content

perf!: adopt compact parser metadata - #58

Merged
exKAZUu merged 2 commits into
mainfrom
perf/compact-state-metadata
Oct 25, 2026
Merged

exKAZUu merged 2 commits into
mainfrom
perf/compact-state-metadata

Conversation

@exKAZUu

@exKAZUu exKAZUu commented Oct 25, 2026 •

Copy link
Copy Markdown
Member

Why

Runtime 15.0.0 packs primary query states into bits and narrows shared lexer-mode IDs. This rebuild adopts that representation and the runtime's cached query-state membership. The Wasm payload is 242,851 bytes versus 247,523 bytes in published 12.0.1 (4,672 bytes smaller).

Requirements

  • required: Improve both performance and binary size in tree-sitter and our grammar repositories as much as possible, ignoring backward compatibility.
  • required: Keeping the current tree structure is not necessary.
  • required: For each PR, run review-booster, complete-pr, and release in that order.
  • chosen: Adopt runtime/generator 15.0.0 in this repository to ship the shared compact metadata with its matching ABI.
  • chosen: Keep the existing generation profile and compiler optimization settings to isolate metadata packing from compiler tuning.
  • chosen: Keep language rules and query sources unchanged while rebuilding their generated artifacts.

Customer Summary

Ships compact parser metadata and requires the matching WillBooster runtime 15.x. Upgrade the grammar and runtime together.

Technical Summary

Pin the Web and Rust runtimes to 15.0.0, update the optional Web peer range, and regenerate the parsers and headers with the official CLI for that release. Language ABI is 0x5742000b.

Testing

bun run build-wasm and bun run verify pass. bun wb test passes for test/unit/corpus.test.ts, test/unit/wasm.test.ts, test/unit/incremental.test.ts, test/unit/modifierQueries.test.ts, test/unit/moduleProviders.test.ts. The full suite, platform matrix, and publication checks run in PR CI.

exKAZUu and others added 2 commits October 26, 2026 03:04
Rebuild with runtime 15.0.0 and its compact state metadata.

Co-authored-by: WillBooster (Codex) <agent@willbooster.com>
@exKAZUu exKAZUu self-assigned this Oct 25, 2026
@exKAZUu
exKAZUu merged commit c5be88b into main Oct 25, 2026
10 checks passed
@exKAZUu
exKAZUu deleted the perf/compact-state-metadata branch October 25, 2026 19:16
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant