Re:Squeezing a Little More Performance Out of Bytecode Inter...
by _a_a_a_ on Sunday June 18, 2023 @07:28AM
(#36379195)
> Single-digit speedup is not worth it IMO
would you reject a single-digit pay rise? :)
> improved the execution speed of the program for which the order was optimized between 0.8% and 23.0% with 7.7% on average.
Single-digit speedup is not worth it IMO, and the wide range (<1% - 23%) probably means that you specialize for some tasks at the expense of other types of tasks, which is not for everyone's interpreter.
One use I can see for it is to compile multiple inner loops and have the interpreter switch between them (probably manually), if that can get us the yummy 20% speedup. Core primitives and dispatchers are usually not the biggest part of interpreters, after all. Maybe in this scenario the core primitives could also benefit from small semantic changes, like no bounds checking for instance.