summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--src/packs.rs10
1 files changed, 5 insertions, 5 deletions
diff --git a/src/packs.rs b/src/packs.rs
index 1e6c435..ab76eca 100644
--- a/src/packs.rs
+++ b/src/packs.rs
@@ -40,18 +40,18 @@ use crate::config::Config;
// Weak minimum and maximimum uncompressed size of a pack file. Should probably be a configuration option.
-const PACK_SIZE_MIN : usize = 96*1024;
-const PACK_SIZE_MAX : usize = 128*1024;
+const PACK_SIZE_MIN : usize = 16*1024;
+const PACK_SIZE_MAX : usize = 32*1024;
-// Always flush dirty files when we have more than 3 packs of them.
-const FLUSH_THRESHOLD : usize = 3*PACK_SIZE_MAX;
+// Always flush dirty files when we have more than 5 packs of them.
+const FLUSH_THRESHOLD : usize = 5*PACK_SIZE_MAX;
// Number of non-dirty packs to keep in the memory cache.
// With the current access patterns, the only time when a pack is loaded in memory is to make
// changes to it, so there's not much value in keeping non-dirty packs around for long.
// (If the access patterns stay this way, we could probably simplify the code a bit and get rid of
// the non-dirty pack cache altogether)
-const PACK_CACHE : usize = 2;
+const PACK_CACHE : usize = 10;
// Number of decimal digits in an integer. Simple iterative approach is surprisingly fast.