Parser throughput toward libyaml parity #5
Loading…
Reference in New Issue
Block a user
No description provided.
Delete Branch "%!s()"
Deleting a branch is permanent. Although the deleted branch may continue to exist for a short time before it actually gets removed, it CANNOT be undone in most cases. Continue?
Tracks closing the parse-throughput gap between PureYAML and Yams (libyaml-backed).
Last measured (PureYAMLYamsComparison, run 2026-06-05, PureYAML pinned to
b47ca4fc31, 111-file real-world corpus):That run predates the 0.2.0 libyaml-port engine merge (2026-07-05), which replaced the hand-rolled scanner with a line-for-line Swift port of libyaml's scanner. Current throughput relative to Yams is unmeasured.
Remaining work:
swift run compare-yamlfrom PureYAMLYamsComparison against current main to get a post-port baseline.Reconstructed from PureYAML's README roadmap, which referenced this as issue #48 before the GitHub to Codeberg migration reset issue numbering on this repo.
Part of #8.
Closed out at scale (uncommitted work pending review in PureYAMLYamsComparison; will link the commit once pushed).
The private OpenAPICorpus bundle referenced in the original benchmark was unavailable on this machine, so I fetched 35 of the largest real-world OpenAPI specs directly from APIs.guru (CC0-1.0, pinned commit
f04b8d0), giving a 221.6MB / 150-file / 5.2M-line corpus, 2.3x the original 95MB benchmark. The sample itself is not checked in, only the report and its provenance, matching how the original private bundle was handled.Result (PureYAML 0.2.0 vs Yams):
PureYAML is not just at parse-success parity with Yams at this scale, it's measurably faster and strictly more permissive (a superset of what Yams accepts) on this corpus. See PureYAMLYamsComparison's README and
Reports/macos-2026-07-10-apisguru-sample/once pushed.