pub struct FeatureFlagsConfig {
pub enable_experimental_optimizations: bool,
pub enable_bounds_check_optimizations: bool,
pub enable_reference_checks: bool,
pub enable_aggressive_caching: bool,
pub enable_batch_tx_id_computation: bool,
pub enable_simd_hash_operations: bool,
}Expand description
Feature flags configuration
Controls optional features and experimental functionality. These are safe to enable/disable without affecting consensus.
Fields§
§enable_experimental_optimizations: boolEnable experimental optimizations (may be unstable) Default: false
enable_bounds_check_optimizations: boolEnable bounds check optimizations (requires formal proofs) Default: true (if production feature enabled)
enable_reference_checks: boolEnable reference implementation checks (slower but safer) Default: false
enable_aggressive_caching: boolEnable aggressive caching (may use more memory) Default: true
enable_batch_tx_id_computation: boolEnable batch transaction ID computation (faster but uses more memory) Default: true
enable_simd_hash_operations: boolEnable SIMD hash operations (faster on supported CPUs) Default: true
Trait Implementations§
Source§impl Clone for FeatureFlagsConfig
impl Clone for FeatureFlagsConfig
Source§fn clone(&self) -> FeatureFlagsConfig
fn clone(&self) -> FeatureFlagsConfig
Returns a duplicate of the value. Read more
1.0.0 · 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 FeatureFlagsConfig
impl Debug for FeatureFlagsConfig
Source§impl Default for FeatureFlagsConfig
impl Default for FeatureFlagsConfig
Source§impl<'de> Deserialize<'de> for FeatureFlagsConfig
impl<'de> Deserialize<'de> for FeatureFlagsConfig
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 PartialEq for FeatureFlagsConfig
impl PartialEq for FeatureFlagsConfig
Source§impl Serialize for FeatureFlagsConfig
impl Serialize for FeatureFlagsConfig
impl Eq for FeatureFlagsConfig
impl StructuralPartialEq for FeatureFlagsConfig
Auto Trait Implementations§
impl Freeze for FeatureFlagsConfig
impl RefUnwindSafe for FeatureFlagsConfig
impl Send for FeatureFlagsConfig
impl Sync for FeatureFlagsConfig
impl Unpin for FeatureFlagsConfig
impl UnsafeUnpin for FeatureFlagsConfig
impl UnwindSafe for FeatureFlagsConfig
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