Reduce maximum LRU size to 2^16 entries, reducing memory footprint of LRU entries

This commit is contained in:
Lukas Wirth 2024-07-19 17:47:38 +02:00
parent 4691ca97f1
commit 8e3133f118
9 changed files with 50 additions and 49 deletions

View file

@ -203,7 +203,7 @@ where
Q: QueryFunction,
MP: MemoizationPolicy<Q>,
{
fn set_lru_capacity(&self, new_capacity: usize) {
fn set_lru_capacity(&self, new_capacity: u16) {
self.lru_list.set_lru_capacity(new_capacity);
}
}