pub struct WasmPerformanceConfig {
pub enable_simd: bool,
pub enable_gpu: bool,
pub memory_pool_mb: usize,
pub batch_size: usize,
pub max_workers: usize,
pub enable_workers: bool,
pub cache_size: usize,
}Expand description
Performance configuration for WASM deployment
Fields§
§enable_simd: boolEnable SIMD optimizations (when available)
enable_gpu: boolUse GPU acceleration via WGPU
memory_pool_mb: usizeMemory pool size for large computations (MB)
batch_size: usizeBatch size for parallel operations
max_workers: usizeMaximum worker threads (WASM workers)
enable_workers: boolEnable Web Workers for parallelization
cache_size: usizeCache size for memoization (entries)
Trait Implementations§
Source§impl Clone for WasmPerformanceConfig
impl Clone for WasmPerformanceConfig
Source§fn clone(&self) -> WasmPerformanceConfig
fn clone(&self) -> WasmPerformanceConfig
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 WasmPerformanceConfig
impl Debug for WasmPerformanceConfig
Auto Trait Implementations§
impl Freeze for WasmPerformanceConfig
impl RefUnwindSafe for WasmPerformanceConfig
impl Send for WasmPerformanceConfig
impl Sync for WasmPerformanceConfig
impl Unpin for WasmPerformanceConfig
impl UnwindSafe for WasmPerformanceConfig
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