Files
trx-rs/.cargo/config.toml
T
sjg bc270834e0 [chore](trx-rs): enable CPU optimizations for better performance
Add .cargo/config.toml to enable native CPU features (AVX2, SSE4.2, etc.)
for maximum performance during compilation. This allows rustc and
dependencies to use SIMD instructions and other CPU optimizations.

This should reduce CPU usage of the DSP backend by allowing:
- Vectorized floating-point operations
- Better compiler optimizations for complex number math
- SIMD acceleration in dependencies like num-complex

Co-Authored-By: Claude Haiku 4.5 <noreply@anthropic.com>
Signed-off-by: Stan Grams <sjg@haxx.space>
2026-02-27 00:36:37 +01:00

8 lines
335 B
TOML

# Enable CPU optimizations for better performance
# Set target-cpu to native to use all available CPU features on the build machine
[build]
# Use native CPU features (AVX2, SSE4.2, etc.) for maximum performance
# This enables better vectorization in rustc and dependencies
rustflags = ["-C", "target-cpu=native", "-C", "opt-level=3"]