Skip to content

Commit

Permalink
Cache size adjustments
Browse files Browse the repository at this point in the history
The cache freelist needs to hold all the nodes plus all the intermediate
nodes. Also adjusted the default cache size to 1.5M nodes, probably good
enough for all of the benchmarks.
  • Loading branch information
rkuris committed Oct 10, 2024
1 parent 48395d7 commit abcc40b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions firewood/src/manager.rs
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,10 @@ pub struct RevisionManagerConfig {
#[builder(default = 128)]
max_revisions: usize,

#[builder(default_code = "NonZero::new(20480).expect(\"non-zero\")")]
#[builder(default_code = "NonZero::new(1500000).expect(\"non-zero\")")]
node_cache_size: NonZero<usize>,

#[builder(default_code = "NonZero::new(10000).expect(\"non-zero\")")]
#[builder(default_code = "NonZero::new(20000).expect(\"non-zero\")")]
free_list_cache_size: NonZero<usize>,
}

Expand Down

0 comments on commit abcc40b

Please sign in to comment.