Module optimizations

Module optimizations 

Source
Expand description

Optimizations and refactoring helpers to reduce allocations

Modules§

clone_reduction
Helper to avoid cloning in common patterns

Structs§

OptimizedParamMap
Optimized parameter mapping that reduces clones
OptimizedStringMap
Optimized replacement for HashMap<String, String> that reduces allocations
StringCache
Cache for commonly used strings to avoid repeated allocations

Traits§

StringOptimizations
Convert common string operations to use Cow to avoid clones

Type Aliases§

CowStr
String storage that can be either owned or borrowed This reduces clones when strings don’t need to be modified
SharedString
Shared string that avoids cloning for read-only access