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

@ -42,9 +42,9 @@ pub trait Upcast<T: ?Sized> {
fn upcast(&self) -> &T;
}
pub const DEFAULT_FILE_TEXT_LRU_CAP: usize = 16;
pub const DEFAULT_PARSE_LRU_CAP: usize = 128;
pub const DEFAULT_BORROWCK_LRU_CAP: usize = 2024;
pub const DEFAULT_FILE_TEXT_LRU_CAP: u16 = 16;
pub const DEFAULT_PARSE_LRU_CAP: u16 = 128;
pub const DEFAULT_BORROWCK_LRU_CAP: u16 = 2024;
pub trait FileLoader {
/// Text of the file.