Enum git_pack::index::traverse::Algorithm [−][src]
pub enum Algorithm {
DeltaTreeLookup,
Lookup,
}
Expand description
The way we verify the pack
Variants
DeltaTreeLookup
Build an index to allow decoding each delta and base exactly once, saving a lot of computational
resource at the expense of resident memory, as we will use an additional DeltaTree
to accelerate
delta chain resolution.
Lookup
We lookup each object similarly to what would happen during normal repository use. Uses more compute resources as it will resolve delta chains from back to front, but start right away without indexing or investing any memory in indices.
This option may be well suited for big packs in memory-starved system that support memory mapping.
Trait Implementations
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
fn deserialize<__D>(__deserializer: __D) -> Result<Self, __D::Error> where
__D: Deserializer<'de>,
Deserialize this value from the given Serde deserializer. Read more
This method returns an ordering between self
and other
values if one exists. Read more
This method tests less than (for self
and other
) and is used by the <
operator. Read more
This method tests less than or equal to (for self
and other
) and is used by the <=
operator. Read more
This method tests greater than (for self
and other
) and is used by the >
operator. Read more
Auto Trait Implementations
impl RefUnwindSafe for Algorithm
impl UnwindSafe for Algorithm
Blanket Implementations
Mutably borrows from an owned value. Read more