You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
index: in heads_pos(), compare generation when queuing parents
Since heads_pos() visits all ancestors of candidates down to min generation,
traversal order doesn't really matter. We use BinaryHeap just because it's
cheaper than DFS/BFS which would have to maintain a visited set.
```
revsets/heads(tags())
---------------------
1 1.00 4.5±0.08ms
0 1.28 5.8±0.08ms
```
FWIW, is_ancestor_pos() uses DFS, which is fast in happy path, but slow if no
match found.
0 commit comments