Commit graph

2 commits

Author SHA1 Message Date
semihalev
4d0e37e1a0 Implement Zero Allocation Plan Phase 1: Global String Cache Optimization
- Added global string cache for efficient string interning (5.2x faster)
- Implemented optimized tokenizer with object pooling
- Created comprehensive benchmarks and documentation
- Cleaned up old optimization files and experiments

Performance improvements:
- String interning: 5.2x faster (1,492 ns/op vs 7,746 ns/op)
- Zero allocations for common strings
- Same memory efficiency as original (36 B/op, 9 allocs/op)
2025-03-12 10:05:23 +03:00
semihalev
7eb8005ea7 Optimize buffer handling for zero allocations
- Implemented pre-computed string tables for common integers
- Added specialized zero-allocation integer and float formatting
- Created efficient string formatting without fmt.Sprintf
- Improved buffer growth strategy for better memory usage
- Added comprehensive benchmarks showing performance gains
- Updated WriteString utility to use optimized buffer
- Created documentation explaining the optimization techniques

🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
2025-03-12 03:12:49 +03:00