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 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read more