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§
Source§impl<'de> Deserialize<'de> for Algorithm
impl<'de> Deserialize<'de> for Algorithm
Source§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
Source§impl Ord for Algorithm
impl Ord for Algorithm
Source§impl PartialOrd for Algorithm
impl PartialOrd for Algorithm
impl Copy for Algorithm
impl Eq for Algorithm
impl StructuralPartialEq for Algorithm
Auto Trait Implementations§
impl Freeze for Algorithm
impl RefUnwindSafe for Algorithm
impl Send for Algorithm
impl Sync for Algorithm
impl Unpin for Algorithm
impl UnwindSafe for Algorithm
Blanket Implementations§
Source§impl<T> BorrowMut<T> for Twhere
T: ?Sized,
impl<T> BorrowMut<T> for Twhere
T: ?Sized,
Source§fn borrow_mut(&mut self) -> &mut T
fn borrow_mut(&mut self) -> &mut T
Mutably borrows from an owned value. Read more