pub struct MemoryConfig {
pub max_memory: u64,
pub block_cache: CacheConfig,
}Expand description
Memory management configuration.
Collapsed to exactly one real caching knob (issue #1568, Epic B/B2): the
block/chunk-cache byte budget (block_cache.max_size), wired as the B1
DecompressedChunkCache
capacity. The former decorative row_cache / query_cache / allocator
knobs (wired to nothing at runtime) were deleted. deny_unknown_fields
makes a config that still names a removed knob fail closed on
deserialization rather than silently ignoring it (which would suggest the
removed knob still has effect).
Fields§
§max_memory: u64Maximum total memory usage (default: 1GB)
block_cache: CacheConfigBlock/chunk cache configuration. block_cache.max_size is the real,
wired byte budget of the shared decompressed-chunk cache.
Trait Implementations§
Source§impl Clone for MemoryConfig
impl Clone for MemoryConfig
Source§fn clone(&self) -> MemoryConfig
fn clone(&self) -> MemoryConfig
Returns a duplicate of the value. Read more
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
Performs copy-assignment from
source. Read moreSource§impl Debug for MemoryConfig
impl Debug for MemoryConfig
Source§impl Default for MemoryConfig
impl Default for MemoryConfig
Source§impl<'de> Deserialize<'de> for MemoryConfig
impl<'de> Deserialize<'de> for MemoryConfig
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
Auto Trait Implementations§
impl Freeze for MemoryConfig
impl RefUnwindSafe for MemoryConfig
impl Send for MemoryConfig
impl Sync for MemoryConfig
impl Unpin for MemoryConfig
impl UnsafeUnpin for MemoryConfig
impl UnwindSafe for MemoryConfig
Blanket Implementations§
impl<T> Allocation for T
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