-
Notifications
You must be signed in to change notification settings - Fork 8
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Increase performance of stereo_to_mono fn ~4x
Benches show average execution time going from ~650ns to ~175ns, with possible reductions further to 160ns if some accuracy loss is acceptable, by using bitshifts instead. Given the already extreme gains, an extra 15ns isn't worth it for being up to +-2 off in the final answer
- Loading branch information
Showing
2 changed files
with
50 additions
and
12 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
#![feature(slice_as_chunks)] | ||
|
||
#![feature(portable_simd)] | ||
#[macro_use] | ||
extern crate tracing; | ||
|
||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters