I'm working on some updates to my Torid gem - and thinking about performance. I now have the situation where I have 2 implementations of the same function, one that is more performant when JIT is enabled, and one that is more performant, when JIT is not enabled.
Thoughts on how to manage this? Should I ship both with a load/parse time switch that detects if jit is enabled and then uses the right one? Just ship the jit one, just ship the base one?