Struct exocore_chain::DirectoryChainStoreConfig[][src]

pub struct DirectoryChainStoreConfig {
    pub segment_over_allocate_size: u64,
    pub segment_max_size: u64,
    pub segment_max_open_mmap: usize,
    pub operation_index_max_memory_items: usize,
}
Expand description

Configuration for directory based chain persistence.

Fields

segment_over_allocate_size: u64

Segment over allocation, in bytes. When resizing a segment, this amount of bytes will be allocated over the required len to prevent remapping the segment too often.

segment_max_size: u64

Maximum size in bytes per segment. This is a soft limit since the last block could overflow that maximum. This should be small enough so that a few segments can fit in allocable virtual space on 32b systems. See segment_max_open for maximum concurrently opened segments.

segment_max_open_mmap: usize

Maximum number of segments concurrently mmap. On 64b systems, where virtual memory isn’t a problem, this can be high. But on 32b systems, one should aim to have maximum ~1-2gb of concurrently mmap segments. See segment_max_size for maximum size per segment.

operation_index_max_memory_items: usize

Maximum number of operations to keep in memory in the operation index before flushing into a sorted file.

Trait Implementations

Returns a copy of the value. Read more

Performs copy-assignment from source. Read more

Formats the value using the given formatter. Read more

Returns the “default value” for a type. Read more

Performs the conversion.

Auto Trait Implementations

Blanket Implementations

Gets the TypeId of self. Read more

Immutably borrows from an owned value. Read more

Mutably borrows from an owned value. Read more

Performs the conversion.

Instruments this type with the provided Span, returning an Instrumented wrapper. Read more

Instruments this type with the current Span, returning an Instrumented wrapper. Read more

Performs the conversion.

The alignment of pointer.

The type for initializers.

Initializes a with the given initializer. Read more

Dereferences the given pointer. Read more

Mutably dereferences the given pointer. Read more

Drops the object pointed to by the given pointer. Read more

Should always be Self

The resulting type after obtaining ownership.

Creates owned data from borrowed data, usually by cloning. Read more

🔬 This is a nightly-only experimental API. (toowned_clone_into)

recently added

Uses borrowed data to replace owned data, usually by cloning. Read more

The type returned in the event of a conversion error.

Performs the conversion.

The type returned in the event of a conversion error.

Performs the conversion.