pub enum Slots {
Given(u16),
AsNeededByDiskState {
multiplier: f32,
minimum: usize,
},
}
Expand description
Configures the amount of slots in the index slotmap, which is fixed throughout the existence of the store.
Variants§
Given(u16)
The amount of slots to use, that is the total amount of indices we can hold at a time. Using this has the advantage of avoiding an initial directory listing of the repository, and is recommended on the server side where the repository setup is controlled.
Note that this won’t affect their packs, as each index can have one or more packs associated with it.
AsNeededByDiskState
Fields
Compute the amount of slots needed, as probably best used on the client side where a variety of repositories is encountered.