Optimize is an ahead-of-time YARV bytecode optimizer for CRuby. It decodes iseq binaries into an in-memory IR, runs a configurable pipeline of passes (constant folding, inlining, dead-stash elimination, arithmetic reassociation, and others) under a narrow contract that the program's hot path respects, and re-emits an optimized iseq. Intended as a demo and an experiment, not a production compiler.

Required Ruby Version

>= 4.0

Authors

Samuel Giddins

Versions

  1. 0.0.0 April 24, 2026 (81.5 KB)

Pushed by

SHA 256 checksum