pub struct GeneratorConfig {
pub size: usize,
pub dedup_factor: usize,
pub compress_factor: usize,
pub numa_mode: NumaMode,
pub max_threads: Option<usize>,
pub numa_node: Option<usize>,
pub block_size: Option<usize>,
pub seed: Option<u64>,
}Expand description
Configuration for data generation
Fields§
§size: usizeTotal size in bytes
dedup_factor: usizeDeduplication factor (1 = no dedup, N = N:1 logical:physical ratio)
compress_factor: usizeCompression factor (1 = incompressible, N = N:1 logical:physical ratio)
numa_mode: NumaModeNUMA optimization mode (Auto, Force, or Disabled)
max_threads: Option<usize>Maximum number of threads to use (None = use all available cores)
numa_node: Option<usize>Pin to specific NUMA node (None = use all nodes, Some(n) = pin to node n) When set, only uses cores from this NUMA node and limits threads accordingly
block_size: Option<usize>Internal block size for parallelization (None = use BLOCK_SIZE constant) Larger blocks (16-32 MB) improve throughput by amortizing Rayon overhead but use more memory. Must be at least 1 MB and at most 32 MB.
seed: Option<u64>Random seed for reproducible data generation (None = use time + urandom) When set, generates identical data for the same seed value
Trait Implementations§
Source§impl Clone for GeneratorConfig
impl Clone for GeneratorConfig
Source§fn clone(&self) -> GeneratorConfig
fn clone(&self) -> GeneratorConfig
1.0.0 · Source§fn clone_from(&mut self, source: &Self)
fn clone_from(&mut self, source: &Self)
source. Read moreSource§impl Debug for GeneratorConfig
impl Debug for GeneratorConfig
Auto Trait Implementations§
impl Freeze for GeneratorConfig
impl RefUnwindSafe for GeneratorConfig
impl Send for GeneratorConfig
impl Sync for GeneratorConfig
impl Unpin for GeneratorConfig
impl UnwindSafe for GeneratorConfig
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<T> Instrument for T
impl<T> Instrument for T
Source§fn instrument(self, span: Span) -> Instrumented<Self>
fn instrument(self, span: Span) -> Instrumented<Self>
Source§fn in_current_span(self) -> Instrumented<Self>
fn in_current_span(self) -> Instrumented<Self>
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