File tree Expand file tree Collapse file tree 2 files changed +8
-3
lines changed
Sources/PeripheryKit/Results Expand file tree Collapse file tree 2 files changed +8
-3
lines changed Original file line number Diff line number Diff line change 12
12
13
13
- Fix unused import false-positives where the only referenced declaration is generated by a macro.
14
14
- Fix building with Bazel on Linux by excluding Xcode support.
15
+ - Fix slow baseline filtering for large projects with many results.
15
16
16
17
## 3.1.0 (2025-04-05)
17
18
Original file line number Diff line number Diff line change @@ -20,12 +20,16 @@ public final class OutputDeclarationFilter {
20
20
21
21
if let baseline {
22
22
var didFilterDeclaration = false
23
+ let ignoredUsrs = declarations
24
+ . flatMapSet ( \. usrs)
25
+ . intersection ( baseline. usrs)
26
+
23
27
declarations = declarations. filter {
24
- let isDisjoint = $0. usrs. isDisjoint ( with : baseline . usrs )
25
- if !isDisjoint {
28
+ let isIgnored = $0. usrs. contains { ignoredUsrs . contains ( $0 ) }
29
+ if isIgnored {
26
30
didFilterDeclaration = true
27
31
}
28
- return isDisjoint
32
+ return !isIgnored
29
33
}
30
34
31
35
if !didFilterDeclaration {
You can’t perform that action at this time.
0 commit comments