Skip to content

Avoid repeated tree traversal in History construction - #1150

Merged
tturocy merged 1 commit into
masterfrom
issue_1139
Sep 16, 2026
Merged

tturocy merged 1 commit into
masterfrom
issue_1139

Conversation

@tturocy

@tturocy tturocy commented Sep 16, 2026

Copy link
Copy Markdown
Member

The first implementation of tree traversal had a mutually-recursive pair of calls which meant in practice history construction was exponential in the depth of the tree.

This instead constructs histories using a linear scan of the tree, taking advantage of the canonical ordering of information set/event members.

The first implementation of tree traversal had a mutually-recursive pair of calls which meant in practice history construction was exponential in the depth of the tree.

This instead constructs histories using a linear scan of the tree, taking advantage of the canonical ordering of information set/event members.
@tturocy tturocy linked an issue Sep 16, 2026 that may be closed by this pull request
@tturocy
tturocy merged commit 07ec048 into master Sep 16, 2026
29 checks passed
@tturocy
tturocy deleted the issue_1139 branch September 16, 2026 11:32
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.

Avoid repeated traversal of tree in History construction

1 participant