So I’m debugging a performance issue and from my analysis with eprof 86% of the request time was spent in [eprof](http://erlang.org/doc/man/eprof.html) (which was only called 4 times during the tracing).
The code in question is just doing :public_key.sign(string, :sha, private_key). Is there a way to improve the performance of that call? Or do I need to avoid it in hot paths?
Which signature algorithm are you using? Some are more performant than others, here is a nice benchmark comparing raw performance of RSA, EC and EdDSA for the same level of security. All are supported by OTP (although support of EdDSA is very recent, I think).