speed of invokeExact

Jochen Theodorou blackdrag at gmx.org
Tue May 7 08:04:26 PDT 2013


Hi,

I am currently investigating here some performance issues and I may have 
found a culprint here - invokeExact. My case is one where method caching 
fails and I will have to do an invokeExact from Java - meaning without 
the invokedynamic bytecode and with a non constant method handle. I am 
aware of that being a non optimized path in indy, but it does not really 
look fast to me at all. Maybe compared to Reflection, but to a runtime 
generated class for the method invocation, it seems to be very very 
slow- at least on my "64-Bit Server VM (build 25.0-b14, mixed mode)" here.

Now.. is that commonly known? Did I see wrong? Is there a way to improve 
the speed (it is a DirectMethodHandle I am invoking already)?

bye Jochen


More information about the mlvm-dev mailing list