Module config

Module config 

Source
Expand description

Global performance configuration management

This module provides a global configuration system that allows:

  1. Binding crates to set their optimal configuration once
  2. Core operations to use the global config by default
  3. Explicit overrides when needed for specific operations

Structs§

CacheStatistics
Comprehensive cache statistics for performance monitoring
ConfigInfo
Configuration information for monitoring and debugging
ParallelStatistics
Parallel processing statistics
PerformanceMetrics
Comprehensive performance monitoring data
SimdStatistics
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