Commit cfb7b9c
committed
perf: use set for O(1) membership check in TestFiles.add()
The previous implementation used `if test_file not in self.test_files`
which performs O(n) equality comparison across all TestFile objects.
Replace with a `_seen_paths` set keyed on `instrumented_behavior_file_path`
for O(1) deduplication lookups.1 parent 9399561 commit cfb7b9c
1 file changed
Lines changed: 7 additions & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
426 | 426 | | |
427 | 427 | | |
428 | 428 | | |
| 429 | + | |
| 430 | + | |
| 431 | + | |
| 432 | + | |
429 | 433 | | |
430 | 434 | | |
431 | | - | |
| 435 | + | |
| 436 | + | |
| 437 | + | |
432 | 438 | | |
433 | 439 | | |
434 | 440 | | |
| |||
0 commit comments