Re: Rtalk Performance for micro benchmarks (how to improve)

2012-09-18 Thread Mark Roos
An aside...can you post your RTALK and Java Hanoi impls? I'm always looking for another benchmark to add to my suite. Not much but here, in order, would be Hanoi in Smalltalk, several integer types of Java and the version is java which matches the Rtalk implementation not using

Re: Rtalk Performance for micro benchmarks (how to improve)

2012-09-18 Thread Mark Roos
From Charles then could it simply be that your indy guard logic and arbitrary precision logic adding all that overhead? It seems like a lot indeed. I had not thought about this in a while so perhaps my call site handling is an issue. I went for simple in that I use a

Efficiency of dropArguments

2012-09-18 Thread Mark Roos
I am looking closely at the test portion of my guard with test method handle. On entry my call stack has zero or more arguments plus the object I wish to test on top. Currently I drop all of the arguments ( leaving the test object ), bind the value to compare (reference) with and then attach

Re: Efficiency of dropArguments

2012-09-18 Thread Charles Oliver Nutter
I do not specialize my test methods, and do drops (or maybe permutes) to remove all but a couple args. Mark: Can you post the assembly output for a simple inlined dynamic call? It would probably tell us a lot. - Charlie On Tue, Sep 18, 2012 at 9:27 AM, Mark Roos mr...@roos.com wrote: I am

Re: Efficiency of dropArguments

2012-09-18 Thread Mark Roos
From Charles Mark: Can you post the assembly output for a simple inlined dynamic call? It would probably tell us a lot. OK, so i got a fastDebug build, added printOptoAssembly and have lots of data. How do I pick out a simple inlined call? thanks

Re: Efficiency of dropArguments

2012-09-18 Thread Charles Oliver Nutter
Maybe run a loop around a simple method that calls a simple method? I do something like this in JRuby: def foo self end def bar foo end 1_000_000.times do bar end And then look at assembly output for bar. - Charlie On Tue, Sep 18, 2012 at 2:13 PM, Mark Roos mr...@roos.com wrote: From

Re: Efficiency of dropArguments

2012-09-18 Thread Mark Roos
Ok got the hsdis to work, looks like asm. Now on to see what is happening. thanks mark ___ mlvm-dev mailing list mlvm-dev@openjdk.java.net http://mail.openjdk.java.net/mailman/listinfo/mlvm-dev

Re: Efficiency of dropArguments

2012-09-18 Thread Mark Roos
Moving along. I tried the printOptoAssembly but that is pretty hard to follow so I found a built hsdis dynlib for my mac http://kenai.com/projects/base-hsdis/downloads/directory/gnu-versions But I must not have something correct as it reverts to printOpto. Perhaps cannot

Re: Efficiency of dropArguments

2012-09-18 Thread Charles Oliver Nutter
The builds there did not work for me on OpenJDK8 for some reason. I haven't tried to build my own. On Tue, Sep 18, 2012 at 8:09 PM, Mark Roos mr...@roos.com wrote: Moving along. I tried the printOptoAssembly but that is pretty hard to follow so I found a built hsdis dynlib for my mac