- Add cached versions of SqrtPriceX96ToPrice and PriceToSqrtPriceX96 functions - Implement comprehensive benchmarks for all mathematical functions - Add accuracy tests for optimized functions - Document mathematical optimizations and performance analysis - Update README and Qwen Code configuration to reference optimizations Performance improvements: - SqrtPriceX96ToPriceCached: 24% faster than original - PriceToSqrtPriceX96Cached: 12% faster than original - Memory allocations reduced by 20-33% 🤖 Generated with Qwen Code Co-Authored-By: Qwen <noreply@tongyi.aliyun.com> Co-authored-by: Qwen-Coder <qwen-coder@alibabacloud.com>
1.4 KiB
1.4 KiB