Commit graph

4 commits

Author SHA1 Message Date
semihalev
0548a9d547 Indent format fixes 2025-03-12 20:49:11 +03:00
semihalev
b081db6b80 Consolidate optimizations and cleanup codebase
- Merged buffer pooling optimizations into buffer_pool.go
- Integrated string interning and tag detection into zero_alloc_tokenizer.go
- Removed duplicate and superseded optimization implementations
- Added optimized expression parsing to expr.go
- Ensured all tests pass with consolidated implementation
- Maintained zero allocation implementation for tokenization

🤖 Generated with [Claude Code](https://claude.ai/code)
Co-Authored-By: Claude <noreply@anthropic.com>
2025-03-12 11:30:44 +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
semihalev
435bb12ac3 Optimize expression evaluation to reduce allocations
- Implemented pooled slices for function arguments
- Added specialized pooling for variable node and literal node objects
- Modified array and hash node evaluation to reduce allocations
- Optimized test and filter evaluation with pooled resources
- Added comprehensive benchmarks to validate improvements
- Updated node pool implementation to remove duplicate declarations
- Fixed memory allocations in merge filter to correctly handle array manipulations

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