File tree Expand file tree Collapse file tree 2 files changed +8
-7
lines changed
gix-odb/src/store_impls/dynamic Expand file tree Collapse file tree 2 files changed +8
-7
lines changed Original file line number Diff line number Diff line change @@ -32,20 +32,20 @@ impl Default for Options {
32
32
}
33
33
}
34
34
35
- /// Configures the amount of slots in the index slotmap, which is fixed throughout the existence of the store.
35
+ /// Configures the number of slots in the index slotmap, which is fixed throughout the existence of the store.
36
36
#[ derive( Copy , Clone , Debug ) ]
37
37
pub enum Slots {
38
- /// The amount of slots to use, that is the total amount of indices we can hold at a time.
38
+ /// The number of slots to use, that is the total number of indices we can hold at a time.
39
39
/// Using this has the advantage of avoiding an initial directory listing of the repository, and is recommended
40
40
/// on the server side where the repository setup is controlled.
41
41
///
42
42
/// Note that this won't affect their packs, as each index can have one or more packs associated with it.
43
43
Given ( u16 ) ,
44
- /// Compute the amount of slots needed, as probably best used on the client side where a variety of repositories is encountered.
44
+ /// Compute the number of slots needed, as probably best used on the client side where a variety of repositories is encountered.
45
45
AsNeededByDiskState {
46
46
/// 1.0 means no safety, 1.1 means 10% more slots than needed
47
47
multiplier : f32 ,
48
- /// The minimum amount of slots to assume
48
+ /// The minimum number of slots to assume
49
49
minimum : usize ,
50
50
} ,
51
51
}
Original file line number Diff line number Diff line change @@ -84,10 +84,11 @@ impl PackId {
84
84
/// An index that changes only if the packs directory changes and its contents is re-read.
85
85
#[ derive( Default ) ]
86
86
pub struct SlotMapIndex {
87
- /// The index into the slot map at which we expect an index or pack file. Neither of these might be loaded yet .
87
+ /// The index into the slot map at which we expect an index or pack file. Neither of these might be already loaded .
88
88
pub ( crate ) slot_indices : Vec < usize > ,
89
- /// A list of loose object databases as resolved by their alternates file in the `object_directory`. The first entry is this objects
90
- /// directory loose file database. All other entries are the loose stores of alternates.
89
+ /// A list of loose object databases as resolved by their alternates file in the `object_directory`.
90
+ /// The first entry is this repository's directory for the loose file database.
91
+ /// All other entries are the loose stores of alternates.
91
92
/// It's in an Arc to be shared to Handles, but not to be shared across SlotMapIndices.
92
93
pub ( crate ) loose_dbs : Arc < Vec < crate :: loose:: Store > > ,
93
94
You can’t perform that action at this time.
0 commit comments