File tree 1 file changed +1
-5
lines changed
1 file changed +1
-5
lines changed Original file line number Diff line number Diff line change @@ -39,11 +39,7 @@ pub struct Stack {
39
39
unique_range : Range < usize > ,
40
40
}
41
41
42
- /// A very small cache of searches of the borrow stack
43
- /// This maps items to locations in the borrow stack. Any use of this still needs to do a
44
- /// probably-cold random access into the borrow stack to figure out what `Permission` an
45
- /// `SbTag` grants. We could avoid this by also storing the `Permission` in the cache, but
46
- /// most lookups into the cache are immediately followed by access of the full borrow stack anyway.
42
+ /// A very small cache of searches of a borrow stack, mapping `Item`s to their position in said stack.
47
43
///
48
44
/// It may seem like maintaining this cache is a waste for small stacks, but
49
45
/// (a) iterating over small fixed-size arrays is super fast, and (b) empirically this helps *a lot*,
You can’t perform that action at this time.
0 commit comments