File tree Expand file tree Collapse file tree 1 file changed +3
-3
lines changed
turbopack/crates/turbo-persistence/src Expand file tree Collapse file tree 1 file changed +3
-3
lines changed Original file line number Diff line number Diff line change @@ -16,16 +16,16 @@ use crate::static_sorted_file::{
1616} ;
1717
1818/// The maximum number of entries that should go into a single key block
19- const MAX_KEY_BLOCK_ENTRIES : usize = 100 * 1024 ;
19+ const MAX_KEY_BLOCK_ENTRIES : usize = MAX_KEY_BLOCK_SIZE / KEY_BLOCK_ENTRY_META_OVERHEAD ;
2020/// The maximum bytes that should go into a single key block
2121// Note this must fit into 3 bytes length
2222const MAX_KEY_BLOCK_SIZE : usize = 16 * 1024 ;
2323/// Overhead of bytes that should be counted for entries in a key block in addition to the key size
2424const KEY_BLOCK_ENTRY_META_OVERHEAD : usize = 8 ;
2525/// The maximum number of entries that should go into a single small value block
26- const MAX_SMALL_VALUE_BLOCK_ENTRIES : usize = 100 * 1024 ;
26+ const MAX_SMALL_VALUE_BLOCK_ENTRIES : usize = MAX_SMALL_VALUE_BLOCK_SIZE ;
2727/// The maximum bytes that should go into a single small value block
28- const MAX_SMALL_VALUE_BLOCK_SIZE : usize = 16 * 1024 ;
28+ const MAX_SMALL_VALUE_BLOCK_SIZE : usize = 64 * 1024 ;
2929/// The aimed false positive rate for the AMQF
3030const AMQF_FALSE_POSITIVE_RATE : f64 = 0.01 ;
3131
You can’t perform that action at this time.
0 commit comments