Change default index map size to 10GiB

This commit is contained in:
Louis Dureuil
2023-02-09 11:07:08 +01:00
parent a4d0a56fc4
commit 89e74dcc31
2 changed files with 5 additions and 6 deletions

View File

@ -62,7 +62,7 @@ pub struct IndexMapper {
mod index_map {
/// the map size to use when we don't succeed in reading it in indexes.
const DEFAULT_MAP_SIZE: usize = 10_737_418_240; // 10 GiB
const DEFAULT_MAP_SIZE: usize = 10 * 1024 * 1024 * 1024; // 10 GiB
use std::collections::BTreeMap;
use std::path::Path;