Module optimized_strings

Module optimized_strings 

Source
Expand description

Optimized string handling for DDEX Builder performance

This module provides string interning, Cow optimization, and memory-efficient string operations to reduce allocations and improve build performance.

Modules§

buffer_sizes
Pre-calculate buffer sizes for different build types

Structs§

BufferPool
Buffer pool for XML generation to reduce allocations
BuildContext
Build context that manages optimized strings and buffers
BuildStats
Build statistics for performance monitoring
MemoryUsage
Memory usage information
OptimizedLocalizedString
Optimized localized string that minimizes allocations
StringInterner
String interner for repeated values during build process

Enums§

OptimizedString
Optimized string for DDEX data

Type Aliases§

CowString
Cow-optimized string for contexts where we may or may not own the data
FastString
High-performance string type for small strings