Repository navigation
Commit bbc3f96
authored
Remove dead cache from
The `IndexSet::cache` field was never populated with a real value, and
`cache.set()` was only ever called with the `(INVALID, 0)` sentinel, so
the fast-path in `maybe_elem()` was unreachable and the invalidation
stores in `elem()` and `maybe_elem_mut()` were pure-overhead on every
`set`/`get`/`union_with`. Removing it additionally shrinks `IndexSet` by
16 bytes.IndexSet (#262)1 parent aa9680b commit bbc3f96
1 file changed
Lines changed: 1 addition & 18 deletions
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
6 | 6 | | |
7 | 7 | | |
8 | 8 | | |
9 | | - | |
10 | 9 | | |
11 | 10 | | |
12 | 11 | | |
13 | 12 | | |
14 | 13 | | |
15 | 14 | | |
16 | 15 | | |
17 | | - | |
18 | | - | |
19 | | - | |
20 | 16 | | |
21 | 17 | | |
22 | 18 | | |
| |||
182 | 178 | | |
183 | 179 | | |
184 | 180 | | |
185 | | - | |
186 | 181 | | |
187 | 182 | | |
188 | 183 | | |
| |||
191 | 186 | | |
192 | 187 | | |
193 | 188 | | |
194 | | - | |
195 | 189 | | |
196 | 190 | | |
197 | 191 | | |
198 | 192 | | |
199 | 193 | | |
200 | 194 | | |
201 | | - | |
202 | | - | |
203 | | - | |
204 | 195 | | |
205 | 196 | | |
206 | 197 | | |
207 | 198 | | |
208 | 199 | | |
209 | 200 | | |
210 | | - | |
211 | | - | |
212 | | - | |
213 | 201 | | |
214 | 202 | | |
215 | 203 | | |
216 | 204 | | |
217 | 205 | | |
218 | 206 | | |
219 | | - | |
220 | | - | |
221 | | - | |
222 | | - | |
223 | | - | |
| 207 | + | |
224 | 208 | | |
225 | 209 | | |
226 | 210 | | |
| |||
235 | 219 | | |
236 | 220 | | |
237 | 221 | | |
238 | | - | |
239 | 222 | | |
240 | 223 | | |
241 | 224 | | |
| |||
0 commit comments