Increase disk cache to 16 MiB again, it is pre-allocated now

This commit is contained in:
Jeremy Soller
2022-08-22 09:22:09 -06:00
parent 04b4a2e4ad
commit 790ea59269
+2 -2
View File
@@ -20,8 +20,8 @@ pub struct DiskCache<T> {
impl<T: Disk> DiskCache<T> {
pub fn new(inner: T) -> Self {
// 8 MB cache
let size = 8 * 1024 * 1024 / BLOCK_SIZE as usize;
// 16 MB cache
let size = 16 * 1024 * 1024 / BLOCK_SIZE as usize;
DiskCache {
inner,
cache: HashMap::with_capacity(size),