Rust performance tuning