Skip to content

Commit

Permalink
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use set instead of list for arcs_executed, fixes poor performance
Browse files Browse the repository at this point in the history
turibe committed Dec 3, 2024

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1 parent 37451ed commit 052db24
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion coverage/results.py
Original file line number Diff line number Diff line change
@@ -178,7 +178,7 @@ def arcs_missing(self) -> list[TArc]:
"""Returns a sorted list of the un-executed arcs in the code."""
missing = (
p for p in self.arc_possibilities
if p not in self.arcs_executed
if p not in self.arcs_executed_set
and p[0] not in self.no_branch
and p[1] not in self.excluded
)

0 comments on commit 052db24

Please sign in to comment.