Expand description
Performance optimization system for MathHook
This module provides a comprehensive performance optimization system with:
- SIMD operations for bulk numeric computations
- Intelligent memoization with configurable caching
- Binding-specific performance strategies
- Global configuration management
- Smart automatic optimization detection
Re-exports§
pub use background_compute::clear_background_compute;pub use background_compute::get_background_compute_statistics;pub use background_compute::get_background_result;pub use background_compute::get_background_result_by_expression;pub use background_compute::predict_and_precompute;pub use background_compute::submit_background_task;pub use background_compute::BackgroundComputeStatistics;pub use background_compute::ComputePriority;pub use background_compute::ComputeResult;pub use background_compute::ComputeTask;pub use config::cache_result;pub use config::cache_stats;pub use config::clear_cache;pub use config::compute_expr_hash;pub use config::extract_numeric_f64;pub use config::get_cached_result;pub use config::get_global_config;pub use config::get_performance_metrics;pub use config::get_performance_summary;pub use config::meets_parallel_threshold;pub use config::parallel_bulk_simplify;pub use config::parallel_matrix_process;pub use config::parallel_simd_bulk_add;pub use config::parallel_simd_bulk_multiply;pub use config::set_binding_config;pub use config::set_global_config;pub use config::should_use_simd;pub use config::simd_bulk_add_numeric;pub use config::simd_bulk_multiply_numeric;pub use config::update_global_config;pub use config::CacheStatistics;pub use config::ConfigInfo;pub use config::ParallelStatistics;pub use config::PerformanceMetrics;pub use config::SimdStatistics;pub use gpu_acceleration::get_gpu_capabilities;pub use gpu_acceleration::get_gpu_statistics;pub use gpu_acceleration::gpu_or_cpu_bulk_add;pub use gpu_acceleration::gpu_or_cpu_matrix_multiply;pub use gpu_acceleration::is_gpu_available;pub use gpu_acceleration::GpuBackend;pub use gpu_acceleration::GpuCapabilities;pub use gpu_acceleration::GpuError;pub use gpu_acceleration::GpuOperation;pub use gpu_acceleration::GpuStatistics;pub use persistent_cache::clear_persistent_cache;pub use persistent_cache::get_persistent_cache_statistics;pub use persistent_cache::get_persistent_cached_result;pub use persistent_cache::save_persistent_cache;pub use persistent_cache::store_persistent_cached_result;pub use persistent_cache::PersistentCacheStatistics;pub use profiler::get_adaptive_thresholds;pub use profiler::get_profiler_statistics;pub use profiler::record_performance;pub use profiler::AdaptiveThresholds;pub use profiler::PerformanceMeasurement;pub use profiler::ProfilerStatistics;pub use simd::SimdOps;pub use simd::SimdOptimized;pub use stable_operations::stable_bulk_addition;pub use stable_operations::stable_bulk_multiplication;pub use stable_operations::StableCache;pub use stable_operations::StableMatrix;pub use stable_operations::StableSIMD;pub use strategy::BindingContext;pub use strategy::PerformanceConfig;pub use strategy::PerformanceOptimizer;pub use config::get_global_config as get_config;pub use strategy::BindingContext as Context;pub use strategy::PerformanceConfig as Config;
Modules§
- background_
compute - Background Precomputation System
- config
- Global performance configuration management
- gpu_
acceleration - GPU Acceleration for MathHook
- persistent_
cache - Persistent Cache System
- profiler
- Runtime Performance Profiler
- simd
- SIMD-like operations Manual loop unrolling and vectorization for bulk numeric operations
- smart
- Smart performance utilities that automatically choose optimal strategies
- stable_
operations - Stable, Low-Variance Performance Operations
- strategy
- Performance optimization strategy for MathHook library usage
- webgpu_
compute - WebGPU Compute Implementation