3 ms·
There are plenty of times when you’re processing data where you load what is a runtime constant value but not a compile time constant. I mean the extreme case
by olliej 5y ago
There are plenty of times when you’re processing data where you load what is a runtime constant value but not a compile time constant.
I mean the extreme case is obviously a scripting language , where lowering to multiplication may well be possible.
That said you are correct in a JIT being vastly more heavyweight than most cases would need - but mostly due to the cost of making an indirect call rather than the cost of the jit itself