Skip to content

filter_obsolete_heads: micro optim

We move the branch name retrieval after the early continue: it was not needed before.

On my PyPy clone, this saves about 1.4ms in the time to run _filter_obsolete_heads() for the branchmap entries of the default branch.

PyPy having lots of closed branches, for the complete analysis that Heptapod currently performs on each push for PyPy, this gains around 100ms (2.5% for a total time around 4s).

All those figures on my workstation.

Merge request reports