mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-03 15:15:24 +00:00
Reduce maximum LRU size to 2^16 entries, reducing memory footprint of LRU entries
This commit is contained in:
parent
4691ca97f1
commit
8e3133f118
9 changed files with 50 additions and 49 deletions
|
@ -577,7 +577,7 @@ where
|
|||
/// cost of potential extra recalculations of evicted values.
|
||||
///
|
||||
/// If `cap` is zero, all values are preserved, this is the default.
|
||||
pub fn set_lru_capacity(&self, cap: usize)
|
||||
pub fn set_lru_capacity(&self, cap: u16)
|
||||
where
|
||||
Q::Storage: plumbing::LruQueryStorageOps,
|
||||
{
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue