Skip to content

0.3.1

Latest

Choose a tag to compare

@mackoj mackoj released this 14 Nov 09:31
9bf4332

Much faster code generation

Generated Swift is byte-identical to 0.3.0; no API change.

  • Emitter no longer cubic in transitions. A new EmitPlan computes per-file lookups once instead of once per generated method: emitting a 200-state machine went from 260 s to 0.76 s (39.2M → 1.62M allocations); the showcase example from 62.5 ms to 29.0 ms.
  • Validator: reachability uses an adjacency map (large machine 9.4 ms → 0.40 ms).
  • Parser and naming helpers read ASCII as bytes (parse 11–34% faster).
  • Fix: UrkelConfigurationResolver.configurationURL(for:) no longer loops forever when no config file exists above the input file.
  • New: benchmarks (docs/performance.md), architecture rules on swift-llm-check 0.5.0, CI, and a landing page at https://mackoj.github.io/urkel/.

Known issue: some generated Swift doesn't fully compile on Swift 6.2/6.4 (#15).

Full Changelog: 0.3.0...0.3.1