Skip to content

Commit 346cfc0

Browse files
turibenedbat
andauthored
fix: use set instead of list for arcs_executed, fixes poor performance (#1901)
Co-authored-by: Ned Batchelder <[email protected]>
1 parent 484678e commit 346cfc0

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

coverage/results.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -178,7 +178,7 @@ def arcs_missing(self) -> list[TArc]:
178178
"""Returns a sorted list of the un-executed arcs in the code."""
179179
missing = (
180180
p for p in self.arc_possibilities
181-
if p not in self.arcs_executed
181+
if p not in self.arcs_executed_set
182182
and p[0] not in self.no_branch
183183
and p[1] not in self.excluded
184184
)

0 commit comments

Comments
 (0)