MethodHandle vs invodynamic (performance-wise)
forum at x9c.fr
forum at x9c.fr
Sun Feb 13 01:07:50 PST 2011
Dear list,
In a previous thread (that I cannot find again), I read that better
performances could be achieved via the "invokedynamic" instruction
rather than by using "MethodHandle" instances.
However, it is not clear to me whether this is true only for the
current state of the implementation, or should remain true in the
future (read "at the time of JDK7 release").
If useful, here is a summary about the context: implementation
of both an interpreter and a compiler supporting closures.
Please not that for interoperability reasons, it will not be possible
to use built-in currification-like support provided by handles.
Hence, all calls will be "total".
Thanks in advance for any insight.
Kind regards,
Xavier Clerc
PS: I am quite eluctant to conduct micro-benchmark, especially
because JDK implementation is moving faster than my tests...
More information about the mlvm-dev
mailing list