Skip to content

Simplify recursive planning limit checks.#1900

Open
copybara-service[bot] wants to merge 1 commit intomasterfrom
test_878154486
Open

Simplify recursive planning limit checks.#1900
copybara-service[bot] wants to merge 1 commit intomasterfrom
test_878154486

Conversation

@copybara-service
Copy link

@copybara-service copybara-service bot commented Mar 3, 2026

Simplify recursive planning limit checks.

Instead of planning recursively up to the limit, the behavior now is to check if the AST is small enough to fit in the limit and either fail planning or swap back to the stack machine implementation

This simplifies program planning avoids some unpredictable behavior around wrapping recursive sub-programs in stack machine steps (high overhead in deep but unbalanced ASTs).

Instead of planning recursively up to the limit, the behavior now is to check if the AST is small enough to fit in the limit and either fail planning or swap back to the stack machine implementation

This simplifies program planning avoids some unpredictable behavior around wrapping recursive sub-programs in stack machine steps (high overhead in deep but unbalanced ASTs).

PiperOrigin-RevId: 878154486
@copybara-service copybara-service bot changed the title WIP: simplify recursive planning limit checks. Simplify recursive planning limit checks. Mar 17, 2026
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant