Performance problem with invoke dynamic
Ola Bini
ola.bini at gmail.com
Thu Jul 28 10:29:55 PDT 2011
On 2011-07-28 10.11, Christian Thalinger wrote:
>
> On Jul 28, 2011, at 6:10 PM, Ola Bini wrote:
>
>>> The bad performance sounds like something is not inlined at all.
>>> How are you invoking valueMH? Via invokedynamic or a direct MH
>>> call?
>>
>> valueMH is combined with an exactInvoker and then chained together
>> with another method handle that calls a method on the result of it
>> that returns another methodhandle that is set as the target for the
>> call site.
>
> Hard to follow :-)
>
>>
>> Exactly the same thing that was done in the emitted bytecode,
>> actually.
>
> Do you have a test case to run?
>
Yes, it's a specific benchmark run (bench/bench_read_lexical.sp). The
current master of Seph (12e906d6cac94608a1da565fe748f87421210c97) has
the method handle implementation. The
c92f2246c09cef9eb9018128e19bfa25593afd2f checkin is the last with the
bytecode based version.
Cheers
--
Ola Bini (http://olabini.com)
Ioke - JRuby - ThoughtWorks
"Yields falsehood when quined" yields falsehood when quined.
More information about the mlvm-dev
mailing list