package octez-internal-libs

  1. Overview
  2. Docs
A package that contains some libraries used by the Octez suite

Install

Dune Dependency

Authors

Maintainers

Sources

tezos-octez-v20.1.tag.bz2
sha256=ddfb5076eeb0b32ac21c1eed44e8fc86a6743ef18ab23fff02d36e365bb73d61
sha512=d22a827df5146e0aa274df48bc2150b098177ff7e5eab52c6109e867eb0a1f0ec63e6bfbb0e3645a6c2112de3877c91a17df32ccbff301891ce4ba630c997a65

doc/octez-internal-libs.irmin_pack/Irmin_pack/Indexing_strategy/index.html

Module Irmin_pack.Indexing_strategySource

Sourcetype t = value_length:int -> Pack_value.Kind.t -> bool

The type of configurations for irmin-pack's indexing strategy, which dictates whether or not newly-appended pack entries should also be added to the index. Strategies are parameterised over:

  • the length of the binary encoding of the object inside the pack entry (i.e. not accounting for the encoded hash and kind character);
  • the kind of the pack object having been added.

Indexing more than the minimal strategy only impacts performance and not correctness: more indexing results in a larger index and a smaller pack file.

Sourceval always : t

The strategy that indexes all objects.

Sourceval minimal : t

The strategy that indexes as few objects as possible while still maintaing store integrity.

Sourceval minimal_with_contents : t

The strategy that is similar to the minimal strategy but it also indexes contents objects.

Sourceval default : t

default is the indexing strategy used by irmin-pack instances that do not explicitly set an indexing strategy in Irmin_pack.config. Currently set to always.

Sourceval is_minimal : t -> bool

is_minimal t is true if t is minimal.

OCaml

Innovation. Community. Security.