Module targeted_optimizations

Module targeted_optimizations 

Source
Expand description

Targeted optimizations for actual performance bottlenecks

Based on profiling data, these optimizations target real performance issues rather than theoretical ones.

Structs§

BasicStats
BatchProcessor
Batch operations to reduce lock frequency
DetailedStats
FastStatsCollector
Optimized statistics collector that avoids lock contention

Functions§

clone_if_needed
Optimized clone avoidance for common patterns
efficient_string_concat
Performance-aware string handling
fast_unwrap_or_default
Optimized unwrap replacement for hot paths
fast_unwrap_result_or_default
Optimized unwrap for results in hot paths