Skip to content

Commit

Permalink
fix: use set instead of list for arcs_executed, fixes poor performance (
Browse files Browse the repository at this point in the history
#1901)

Co-authored-by: Ned Batchelder <[email protected]>
  • Loading branch information
turibe and nedbat authored Dec 4, 2024
1 parent 484678e commit 346cfc0
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
Expand Up @@ -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
)
Expand Down

0 comments on commit 346cfc0

Please sign in to comment.