Commit b971354
fix: use native std::set::contains() instead of linear search
Use C++20's native `std::set::contains()` method for `forMembers` and
`validCommitments` instead of `std23::ranges::contains()` which performs
an O(n) linear scan. The native method maintains O(log n) complexity.
Also removes the now-unused `<util/std23.h>` include from the file.
Co-Authored-By: Claude Opus 4.5 <[email protected]>1 parent dc28b5d commit b971354
1 file changed
+2
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
13 | 13 | | |
14 | 14 | | |
15 | 15 | | |
16 | | - | |
17 | 16 | | |
18 | 17 | | |
19 | 18 | | |
| |||
356 | 355 | | |
357 | 356 | | |
358 | 357 | | |
359 | | - | |
| 358 | + | |
360 | 359 | | |
361 | 360 | | |
362 | 361 | | |
| |||
561 | 560 | | |
562 | 561 | | |
563 | 562 | | |
564 | | - | |
| 563 | + | |
565 | 564 | | |
566 | 565 | | |
567 | 566 | | |
| |||
0 commit comments