Files
Micha Reiser f5c67e3a91 Inline the expression walker into its visitors in release builds
A visitor that checks for a yield and then walks the expression can
dispatch on its kind twice. Inlining walk_expr lets the compiler combine
the checks and removes the stack copy of the classified expression on
recursive calls.

Leave inlining to the compiler with debug assertions enabled. At
opt-level=0, forcing the walker into the visitor enlarges its stack
frame enough to overflow the ty server thread on 2,000 nested additions.
2026-11-20 17:49:39 +00:00
..
2026-11-19 10:32:47 -05:00

ruff_python_ast

This crate is an internal component of Ruff. The Rust API exposed here is unstable and will have frequent breaking changes.

This version (0.0.23) is a component of Ruff 0.17.6. The source can be found here.

See Ruff's crate versioning policy for details on versioning.