we currently use the stdlib macros in many places. I believe this is reasonably fast for us (we don't do it in tight loops), but still those macros have overhead. We might benefit from a different approach. I came across
https://crates.io/crates/multiversion
which apparently has some tricks up its sleeve.