I'm trying to save a bit of CPU on my main performance patch.
I use tanh~ a lot on the outputs of audio modules as a kind of cheap limiter that gives a slightly nicer distortion than the using clip~.
I've been doing a few tests and using Max's built in 'Show CPU usage' function I have found that tanh~ seems to be much cheaper on CPU than standard MSP lookup~ or indeed Gen~ lookup~ with linear interpolation.
Here's my readout:
Have I done something wrong? Should I be looking elsewhere to lower my CPU usage and leave the tanh~'s alone?
Here's the patch: