The remaining audio processing function (calc_gating_block) is about 1.5%
faster in its Rust version than the C version.
Overall the Rust version is currently
- 9% slower with all features enabled but not histogram mode
- 2% slower with all features enabled in histogram mode
- 1% to 2.5% slower in M/S/I modes (with and without histogram)
There are various obvious optimizations to do.
Ok, this is all done now. Some obvious further optimizations to do but overall the two implementations are very close in performance (Rust is a bit slower, usually around 2%). On my machine they both give the same results (difference is less than 2 ULP), on travis tests are failing though which I'll have to investigate.