Skip to content

tree_builder: make get_base_tree() concurrent and not recursive#9114

Merged
martinvonz merged 1 commit intomainfrom
mz/tkkwwuylsksl
Mar 15, 2026
Merged

tree_builder: make get_base_tree() concurrent and not recursive#9114
martinvonz merged 1 commit intomainfrom
mz/tkkwwuylsksl

Conversation

@martinvonz
Copy link
Member

We are seeing stack overflows in get_base_trees() at Google. This patch rewrites it to not be recursive and also read trees more concurrently by using a FuturesUnordered.

Checklist

If applicable:

  • I have updated CHANGELOG.md
  • I have updated the documentation (README.md, docs/, demos/)
  • I have updated the config schema (cli/src/config-schema.json)
  • I have added/updated tests to cover my changes
  • I fully understand the code that I am submitting (what it does,
    how it works, how it's organized), including any code drafted by an LLM.
  • For any prose generated by an LLM, I have proof-read and copy-edited with
    an eye towards deleting anything that is irrelevant, clarifying anything
    that is confusing, and adding details that are relevant. This includes,
    for example, commit descriptions, PR descriptions, and code comments.

@martinvonz martinvonz requested a review from a team as a code owner March 15, 2026 01:02
We are seeing stack overflows in `get_base_trees()` at Google. This
patch rewrites it to not be recursive and also read trees more
concurrently by using a `FuturesUnordered`.
@martinvonz martinvonz added this pull request to the merge queue Mar 15, 2026
Merged via the queue into main with commit 2a41511 Mar 15, 2026
28 of 29 checks passed
@martinvonz martinvonz deleted the mz/tkkwwuylsksl branch March 15, 2026 22:01
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.

2 participants