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 {
3232 }
3333}
3434
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.
3636#[ derive( Copy , Clone , Debug ) ]
3737pub 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.
3939 /// Using this has the advantage of avoiding an initial directory listing of the repository, and is recommended
4040 /// on the server side where the repository setup is controlled.
4141 ///
4242 /// Note that this won't affect their packs, as each index can have one or more packs associated with it.
4343 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.
4545 AsNeededByDiskState {
4646 /// 1.0 means no safety, 1.1 means 10% more slots than needed
4747 multiplier : f32 ,
48- /// The minimum amount of slots to assume
48+ /// The minimum number of slots to assume
4949 minimum : usize ,
5050 } ,
5151}
Original file line number Diff line number Diff line change @@ -84,10 +84,11 @@ impl PackId {
8484/// An index that changes only if the packs directory changes and its contents is re-read.
8585#[ derive( Default ) ]
8686pub 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 .
8888 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.
9192 /// It's in an Arc to be shared to Handles, but not to be shared across SlotMapIndices.
9293 pub ( crate ) loose_dbs : Arc < Vec < crate :: loose:: Store > > ,
9394
You can’t perform that action at this time.
0 commit comments