pub struct PerformanceConfig {
pub script_verification_threads: usize,
pub parallel_batch_size: usize,
pub ibd_chunk_threshold: Option<usize>,
pub ibd_min_chunk_size: Option<usize>,
pub enable_simd_optimizations: bool,
pub enable_cache_optimizations: bool,
pub enable_batch_utxo_lookups: bool,
}Expand description
Performance and optimization configuration
Controls performance tuning, parallelization, and optimization features. These are operational parameters that affect performance but not consensus correctness.
IBD batch tuning: When ibd_chunk_threshold / ibd_min_chunk_size are None,
hardware-derived values are used. When Some(x), config overrides hardware.
Fields§
§script_verification_threads: usizeNumber of threads for script verification (default: number of CPU cores) Default: 0 (auto-detect from CPU count)
parallel_batch_size: usizeBatch size for parallel transaction validation Larger batches improve throughput but increase latency Default: 8 transactions per batch
ibd_chunk_threshold: Option<usize>IBD batch: chunk threshold (parallelize when sig count exceeds this). None = use hardware-derived; Some(x) = override.
ibd_min_chunk_size: Option<usize>IBD batch: minimum chunk size for parallel batches. None = use hardware-derived; Some(x) = override.
enable_simd_optimizations: boolEnable SIMD/vectorization optimizations (if available) Default: true
enable_cache_optimizations: boolEnable cache-friendly memory layouts Default: true
enable_batch_utxo_lookups: boolEnable batch UTXO lookups (pre-fetch all UTXOs before validation) Default: true
Trait Implementations§
Source§impl Clone for PerformanceConfig
impl Clone for PerformanceConfig
Source§fn clone(&self) -> PerformanceConfig
fn clone(&self) -> PerformanceConfig
1.0.0 (const: unstable) · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for PerformanceConfig
impl Debug for PerformanceConfig
Source§impl Default for PerformanceConfig
impl Default for PerformanceConfig
Source§impl<'de> Deserialize<'de> for PerformanceConfig
impl<'de> Deserialize<'de> for PerformanceConfig
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>,
Source§impl PartialEq for PerformanceConfig
impl PartialEq for PerformanceConfig
Source§fn eq(&self, other: &PerformanceConfig) -> bool
fn eq(&self, other: &PerformanceConfig) -> bool
self and other values to be equal, and is used by ==.