MethodHandle lookupinvocation performance

2011-07-09 Thread Hiroshi Nakamura
Hello, I heard that jsr292 makes dynamic method lookupinvocation faster than reflection so I did some performance comparison against plain reflection. I'm sending this mail since the result looks strange to me. Code is here:

Re: MethodHandle lookupinvocation performance

2011-07-09 Thread Hiroshi Nakamura
Hello, Thanks for your swift responses. On Sat, Jul 9, 2011 at 19:29, RĂ©mi Forax fo...@univ-mlv.fr wrote: You should avoid to create constants more than once. Indeed. I updated the benckmark. (please see below) Also, bindTo() will create a method handle for-each call. Sure, but

Re: MethodHandle lookupinvocation performance

2011-07-09 Thread Hiroshi Nakamura
Hello, Thanks for you comments. On Sat, Jul 9, 2011 at 19:01, Jochen Theodorou blackd...@gmx.org wrote: Code is here: https://raw.github.com/nahi/jsr292-sandbox/master/src/jp/gr/java_conf/jruby/MethodHandleTest.java lookup I don't know. I am not sure about the recent versions, I think the