Skip to content

Conversation

@WZhuo
Copy link
Contributor

@WZhuo WZhuo commented Feb 11, 2026

  • Optimize IsAncestorOf to return early instead of collecting all ancestors
  • Optimize IsParentAncestorOf to return early when matching parent is found
  • Add TableMetadata overloads for AncestorsOf, AncestorsBetween, OldestAncestorOf
  • Add IsParentAncestorOf overload with custom lookup function

- Optimize IsAncestorOf to return early instead of collecting all ancestors
- Optimize IsParentAncestorOf to return early when matching parent is found
- Add TableMetadata overloads for AncestorsOf, AncestorsBetween, OldestAncestorOf
- Add IsParentAncestorOf overload with custom lookup function
Copy link
Collaborator

@zhjwpku zhjwpku left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

An early return should improve performance when there is a large snapshot history, so +1 from me. Thanks for working on this.

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