Re: Performance problem with invoke dynamic

2011-08-17 Thread John Rose
On Jul 27, 2011, at 5:20 PM, Ola Bini wrote: > I tried switching out asType to explicitCastArguments. That ended up > being about 5% slower. Sorting out asType and eCA probably needs a Cookbook entry or two. I'll post those separately. The main differences between asType and eCA are: - eCA t

Auto Reply: Re: Performance problem with invoke dynamic

2011-08-17 Thread bernard . traversat
This is an auto-replied message. I am out of the office until Aug 22nd with limited access to email and phone. ___ mlvm-dev mailing list [email protected] http://mail.openjdk.java.net/mailman/listinfo/mlvm-dev

Re: Performance problem with invoke dynamic

2011-08-17 Thread John Rose
On Aug 12, 2011, at 9:49 PM, Charles Oliver Nutter wrote: > On the other side of things...I hope those languages that will churn > through method handles also realize they're unlikely to ever JIT... Getting native code out of the MH-construction process brings them much closer to optimizability.

Re: Performance problem with invoke dynamic

2011-08-12 Thread Charles Oliver Nutter
On Fri, Aug 12, 2011 at 3:17 AM, Christian Thalinger wrote: > FYI, this is: > > 7071693: JSR 292: native method calls slow down method handle constructor > execution > > I'm not sure if John is already working on that but that's the plan. This will be very nice. I think it's going to be quite co

Re: Performance problem with invoke dynamic

2011-08-12 Thread Christian Thalinger
On Aug 10, 2011, at 9:10 PM, Christian Thalinger wrote: > > On Jul 28, 2011, at 7:29 PM, Ola Bini wrote: > >> 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. > H

Re: Performance problem with invoke dynamic

2011-08-10 Thread Christian Thalinger
On Jul 28, 2011, at 7:29 PM, Ola Bini wrote: > 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 ca

Re: Performance problem with invoke dynamic

2011-07-28 Thread Ola Bini
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

Re: Performance problem with invoke dynamic

2011-07-28 Thread Christian Thalinger
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 cal

Re: Performance problem with invoke dynamic

2011-07-28 Thread Ola Bini
> 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 me

Re: Performance problem with invoke dynamic

2011-07-28 Thread Christian Thalinger
On Jul 28, 2011, at 2:20 AM, Ola Bini wrote: > Hi, > > I've hit a very annoying performance problem with invoke dynamic/method > handles that makes certain benchmarks about 3 times slower for identical > operations. This code is related to to variable lookup and the basic > idea is that I have a