This PR makes use of SampleBuffer::samples_mut to remove a 7680B stack allocation in general, and memcopy when softclip is used. This appears to offer ~1.5% performance boost according to cargo make bench.
This is a draft PR conditioned on the relevant symphonia API change becoming available.
This PR makes use of
SampleBuffer::samples_mut
to remove a 7680B stack allocation in general, and memcopy when softclip is used. This appears to offer ~1.5% performance boost according tocargo make bench
.This is a draft PR conditioned on the relevant symphonia API change becoming available.