The special case of 1.0 was catered for, but 0.0 can also be treated as a special case by releasing the relevant input block without multiplying and adding its data - it would be all zeroes anyway. Saves about 0.033% CPU per connected zero-gain channel, on a Teensy 4.1. Interestingly, the 1.0 gain optimisation appears to have little effect for the same hardware; those DSP instructions must be really effective!
The special case of 1.0 was catered for, but 0.0 can also be treated as a special case by releasing the relevant input block without multiplying and adding its data - it would be all zeroes anyway. Saves about 0.033% CPU per connected zero-gain channel, on a Teensy 4.1. Interestingly, the 1.0 gain optimisation appears to have little effect for the same hardware; those DSP instructions must be really effective!
Here's some test code: