Improving Ruby Performance with Rust
Not just Ruby, Python too.<p>Was doing some work of converting [0,1] signals to 16-bit PCM data with 550Hz tone in numpy.<p>Python version took ~15 minutes to generate 5,000 4 second files. Broke out the inner loop into Rust with FFI via ctypes and cut that time to ~10 seconds with nearly identical code.