Commit 7e954bc
authored
Remove redundant list copy in CanMatchNodeRequest (elastic#121700) (elastic#121866)
We're not mutating that list ever, so lets just use an immutable list
all the way here and avoid at least one round of needless copy.1 parent a0f77e7 commit 7e954bc
File tree
2 files changed
+2
-6
lines changed- server/src/main/java/org/elasticsearch/action/search
2 files changed
+2
-6
lines changedLines changed: 1 addition & 1 deletion
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
136 | 136 | | |
137 | 137 | | |
138 | 138 | | |
139 | | - | |
| 139 | + | |
140 | 140 | | |
141 | 141 | | |
142 | 142 | | |
| |||
Lines changed: 1 addition & 5 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
44 | | - | |
45 | 44 | | |
46 | 45 | | |
47 | 46 | | |
| |||
350 | 349 | | |
351 | 350 | | |
352 | 351 | | |
353 | | - | |
354 | | - | |
355 | | - | |
356 | | - | |
| 352 | + | |
357 | 353 | | |
358 | 354 | | |
359 | 355 | | |
| |||
0 commit comments