indy-based string-switch proposal
John Rose
john.r.rose at oracle.com
Tue Nov 5 20:29:34 UTC 2019
On Nov 5, 2019, at 10:40 AM, Remi Forax <forax at univ-mlv.fr> wrote:
>
>> There are cases where smaller types should be handed to the library also.
>> I know this would be profitable for character classification switches (usable
>> by parsers!), which is why I called out that case at the end of my long message.
>> LLVM is having some fun with those; we should too.
>
> I wonder if it's not better for this specific case to has a specific optimization of the tableswitch inside the JIT so some existing tableswitch will be optimized has well without recompiling.
Maybe. It could go either way. In some cases it’s probably cheaper to do it in the library.
But as you say then really old class files don’t get the bump.
More information about the amber-dev
mailing list