jmg049 / wavers

Rust library for reading and writing WAV files
MIT License
31 stars 6 forks source link

Performance #1: Investigate converted and writing of a wav file #2

Open jmg049 opened 1 year ago

jmg049 commented 1 year ago

Performance benchmarks for writing a wavers::WaveFile vs. hound::WavWriter show room for improvement for Wavers. It is worth a deeper investigation to writing wav data in Rust.

jmg049 commented 1 year ago

Benchmarks should be up soon

jmg049 commented 1 year ago

So it is still obvious from the benchmarks that something funny is happening when writing, but more importantly when reading and converting. Reading the native encoding of the files is fast, but when they need to be converted, there is a significant spike in run time (2x). Need to investigate further since last I benchmarked the conversion functions, they were insignificant.