Commit 4d57e08
perf(intel): use set.difference_update in FunctionCandidate.removeCallRefs
Follow-up to the call_ref_sources list-to-set switch: collapse the
Python-level "for addr in source_addrs: discard()" loop into a single
set.difference_update() call. The semantics are identical (both no-op on
missing elements) but the work is now done in optimized C, which matters
because removeCallRefs is called from FunctionCandidateManager.updateCandidates
whenever HIGH_ACCURACY is on (the default) and conflicts are detected
during CFG recovery.
Validation:
- pytest tests/test* -> 90 passed, 43 subtests passed
- ruff check + format --check clean1 parent ce1f2ec commit 4d57e08
1 file changed
Lines changed: 1 addition & 2 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
88 | 88 | | |
89 | 89 | | |
90 | 90 | | |
91 | | - | |
92 | | - | |
| 91 | + | |
93 | 92 | | |
94 | 93 | | |
95 | 94 | | |
| |||
0 commit comments