RFR: Direct LambdaMetaFactory invocation from CallSite significantly improves lambda linkage performance
john.r.rose at oracle.com
Wed Sep 11 11:18:32 PDT 2013
Yes, this is a good tactic, but as written it is too much of a point hack for lambdas (important though they are).
I have an alternate solution I would like you to measure. It provides a fast path for other BSM lookups like Nashorn's, so (if it works well for lambda) it is preferable.
I will attach a patch to the bug report.
On Sep 11, 2013, at 9:23 AM, Sergey Kuksenko <sergey.kuksenko at oracle.com> wrote:
> Please review the webrev at:
> LambdaMetafactory is is a quite frequent bootstrap method for
> invokedynamic in JDK8.
> We can do direct method (LambdaMetafactory) invocation as fastpath when
> proved that bootstrap MethodHandle points to LambdaMetafactory.
> The modification gives +10% - +35% to lambda linkage performance
> (depends on amount of lambdas).
> Best regards,
> Sergey Kuksenko
More information about the hotspot-compiler-dev