Repository navigation
Commit cc85fa2
authored
Borrow hash strategies in lock setup and the resolver provider (#21541)
We borrow the selected build hash strategy in `do_lock` and the caller's
strategy in `DefaultResolverProvider`, avoiding unnecessary strategy
clones and hash-map reference-count updates. The resolver thread,
lookahead results, and cached version maps retain owned policy
snapshots.
Stacked on #21540. Follows up on
#21223 (comment).1 parent eead89b commit cc85fa2
2 files changed
Lines changed: 8 additions & 9 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
121 | 121 | | |
122 | 122 | | |
123 | 123 | | |
124 | | - | |
| 124 | + | |
125 | 125 | | |
126 | 126 | | |
127 | 127 | | |
| |||
149 | 149 | | |
150 | 150 | | |
151 | 151 | | |
152 | | - | |
| 152 | + | |
153 | 153 | | |
154 | 154 | | |
155 | 155 | | |
| |||
200 | 200 | | |
201 | 201 | | |
202 | 202 | | |
203 | | - | |
| 203 | + | |
204 | 204 | | |
205 | 205 | | |
206 | 206 | | |
| |||
234 | 234 | | |
235 | 235 | | |
236 | 236 | | |
237 | | - | |
| 237 | + | |
238 | 238 | | |
239 | 239 | | |
240 | 240 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
841 | 841 | | |
842 | 842 | | |
843 | 843 | | |
844 | | - | |
845 | | - | |
846 | | - | |
847 | | - | |
| 844 | + | |
| 845 | + | |
| 846 | + | |
848 | 847 | | |
849 | 848 | | |
850 | 849 | | |
| |||
912 | 911 | | |
913 | 912 | | |
914 | 913 | | |
915 | | - | |
| 914 | + | |
916 | 915 | | |
917 | 916 | | |
918 | 917 | | |
| |||
0 commit comments