Repository navigation
supdoc v0.2.1
supdoc v0.2.1 makes check faster by compiling each language only when a file of that language is read. Output, the lockfile and the JSON schema are unchanged from v0.2.0.
Faster
Before, every run compiled the queries for every built-in language at startup. Now each language compiles the first time a file of that language is read, at most once per run (#177).
Median check --quiet on an Apple M4 Pro, measured with hyperfine:
| project | v0.1.2 | v0.2.0 | v0.2.1 |
|---|---|---|---|
| ripgrep | 247.5 ms | 290.1 ms | 241.7 ms |
| supdoc | 218.1 ms | 237.1 ms | 217.8 ms |
This recovers the startup cost v0.2.0 added and keeps its lower memory use. check --json output is byte-identical to v0.2.0 on both projects.
Changed
- A built-in language whose query fails to compile still fails the run with
read-cartridge-load(exit 70) and the same help. It now happens when a file of that language is read, in any command that reads files, rather than on every run. CI still compiles every built-in, so a broken query can't ship.