Expand description
Global performance configuration management
This module provides a global configuration system that allows:
- Binding crates to set their optimal configuration once
- Core operations to use the global config by default
- Explicit overrides when needed for specific operations
Structs§
- Cache
Statistics - Comprehensive cache statistics for performance monitoring
- Config
Info - Configuration information for monitoring and debugging
- Parallel
Statistics - Parallel processing statistics
- Performance
Metrics - Comprehensive performance monitoring data
- Simd
Statistics - SIMD operation statistics
Constants§
- PARALLEL_
THRESHOLD - Parallelism threshold - exported for binding-specific crates to use
Functions§
- cache_
result - Cache a computation result
- cache_
stats - Get comprehensive cache statistics for monitoring
- clear_
cache - Clear the global cache
- compute_
expr_ hash - Compute hash for expression (for memoization)
- extract_
numeric_ f64 - Extract numeric values from expressions for SIMD processing
- get_
cached_ result - Get cached result for expression hash
- get_
config_ info - Get configuration statistics for monitoring
- get_
global_ config - Get the current global performance configuration
- get_
performance_ metrics - Get comprehensive performance metrics for monitoring and debugging
- get_
performance_ summary - Get performance summary as human-readable string
- meets_
parallel_ threshold - Check if operation size meets parallel threshold (for binding-specific use)
- parallel_
bulk_ simplify - Parallel bulk expression simplification
- parallel_
matrix_ process - Parallel matrix element processing
- parallel_
simd_ bulk_ add - Parallel numeric operations with SIMD + Rayon combination
- parallel_
simd_ bulk_ multiply - Parallel numeric multiplication with SIMD + Rayon combination
- set_
binding_ config - Set global configuration for a specific binding context
- set_
global_ config - Set the global performance configuration
- should_
use_ simd - Smart SIMD decision: use SIMD only when beneficial
- simd_
bulk_ add_ numeric - SIMD-optimized bulk numeric addition
- simd_
bulk_ multiply_ numeric - SIMD-optimized bulk numeric multiplication
- update_
global_ config - Update specific configuration parameters without replacing the entire config