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 moreSource§impl Debug for PerformanceConfig
impl Debug for PerformanceConfig
Source§impl Default for PerformanceConfig
impl Default for PerformanceConfig
Source§fn default() -> PerformanceConfig
fn default() -> PerformanceConfig
Source§impl<'de> Deserialize<'de> for PerformanceConfig
impl<'de> Deserialize<'de> for PerformanceConfig
Source§fn deserialize<__D>(
__deserializer: __D,
) -> Result<PerformanceConfig, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
fn deserialize<__D>(
__deserializer: __D,
) -> Result<PerformanceConfig, <__D as Deserializer<'de>>::Error>where
__D: Deserializer<'de>,
Source§impl PartialEq for PerformanceConfig
impl PartialEq for PerformanceConfig
Source§impl Serialize for PerformanceConfig
impl Serialize for PerformanceConfig
Source§fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
fn serialize<__S>(
&self,
__serializer: __S,
) -> Result<<__S as Serializer>::Ok, <__S as Serializer>::Error>where
__S: Serializer,
impl Eq for PerformanceConfig
impl StructuralPartialEq for PerformanceConfig
Auto Trait Implementations§
impl Freeze for PerformanceConfig
impl RefUnwindSafe for PerformanceConfig
impl Send for PerformanceConfig
impl Sync for PerformanceConfig
impl Unpin for PerformanceConfig
impl UnsafeUnpin for PerformanceConfig
impl UnwindSafe for PerformanceConfig
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
Source§impl<T> CloneToUninit for Twhere
T: Clone,
impl<T> CloneToUninit for Twhere
T: Clone,
Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§fn equivalent(&self, key: &K) -> bool
fn equivalent(&self, key: &K) -> bool
key and return true if they are equal.Source§impl<Q, K> Equivalent<K> for Q
impl<Q, K> Equivalent<K> for Q
Source§impl<T> IntoEither for T
impl<T> IntoEither for T
Source§fn into_either(self, into_left: bool) -> Either<Self, Self>
fn into_either(self, into_left: bool) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left is true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read moreSource§fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
fn into_either_with<F>(self, into_left: F) -> Either<Self, Self>
self into a Left variant of Either<Self, Self>
if into_left(&self) returns true.
Converts self into a Right variant of Either<Self, Self>
otherwise. Read more