From 790ea59269fed5e4e024b88d25d309dd1a1daeae Mon Sep 17 00:00:00 2001 From: Jeremy Soller <jackpot51@gmail.com> Date: Mon, 22 Aug 2022 09:22:09 -0600 Subject: [PATCH] Increase disk cache to 16 MiB again, it is pre-allocated now --- src/disk/cache.rs | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/disk/cache.rs b/src/disk/cache.rs index 9a429a7..a35b848 100644 --- a/src/disk/cache.rs +++ b/src/disk/cache.rs @@ -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), -- GitLab