grammarblobprobe

command
v0.20.2 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 6, 2026 License: MIT Imports: 1 Imported by: 0

Documentation

Overview

Command grammarblobprobe is a minimal binary that blank-imports the grammars package so that whatever grammar blobs are embedded by the active build tags are linked into the binary. It exists to measure the embedded-blob payload of each grammar-selection build mode (default, grammar_set_core, grammar_subset, grammar_blobs_external) — the binary's size is the measurement.

go build -o /tmp/probe.full                                   ./cmd/grammarblobprobe   # all blobs
go build -tags 'grammar_subset grammar_subset_go' -o /tmp/probe.go ./cmd/grammarblobprobe   # go only

A grammar_subset build that embeds only the selected blobs will be dramatically smaller than the default all-grammars build.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL