Skip to content

Commit

Permalink
perf: decrease default shard size (#246)
Browse files Browse the repository at this point in the history
Co-authored-by: John Guibas <jtguibas@Johns-MBP.monkeybrains.net>
  • Loading branch information
jtguibas and John Guibas authored Feb 21, 2024
1 parent 17d33d8 commit 4978e14
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion core/src/utils/env.rs
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
pub fn shard_size() -> usize {
let value = match std::env::var("SHARD_SIZE") {
Ok(val) => val.parse().unwrap(),
Err(_) => 1 << 20,
Err(_) => 1 << 19,
};
assert!(value != 0 && (value & (value - 1)) == 0);
value
Expand Down

0 comments on commit 4978e14

Please sign in to comment.