Re: [jruby-dev] Improving Ruby to Java call performance: no instance vars or singletons

2010-06-18 Thread Thomas E Enebo
Oliver Nutter [mailto:head...@headius.com] >>> Sent: Sunday, June 13, 2010 6:28 PM >>> To: dev@jruby.codehaus.org >>> Subject: Re: [jruby-dev] Improving Ruby to Java call performance: no >>> instance vars or singletons >>> >>> On Sun, Jun 13, 20

Re: [jruby-dev] Improving Ruby to Java call performance: no instance vars or singletons

2010-06-15 Thread Charles Oliver Nutter
iginal Message- >> From: Charles Oliver Nutter [mailto:head...@headius.com] >> Sent: Sunday, June 13, 2010 6:28 PM >> To: dev@jruby.codehaus.org >> Subject: Re: [jruby-dev] Improving Ruby to Java call performance: no >> instance vars or singletons >> >> O

RE: [jruby-dev] Improving Ruby to Java call performance: no instance vars or singletons

2010-06-14 Thread Brandon Hauff
June 13, 2010 6:28 PM > To: dev@jruby.codehaus.org > Subject: Re: [jruby-dev] Improving Ruby to Java call performance: no > instance vars or singletons > > On Sun, Jun 13, 2010 at 11:19 PM, Charles Oliver Nutter > wrote: > > On Sun, Jun 13, 2010 at 2:54 AM, Wayne Meissner

Re: [jruby-dev] Improving Ruby to Java call performance: no instance vars or singletons

2010-06-13 Thread Charles Oliver Nutter
On Sun, Jun 13, 2010 at 11:19 PM, Charles Oliver Nutter wrote: > On Sun, Jun 13, 2010 at 2:54 AM, Wayne Meissner wrote: >> Could the weak ref wiring be done lazily, so the overhead is only >> incurred when someone sets an ivar on a java object? >> >> e.g. when a java object enters jruby, it gets

Re: [jruby-dev] Improving Ruby to Java call performance: no instance vars or singletons

2010-06-13 Thread Charles Oliver Nutter
On Sun, Jun 13, 2010 at 2:54 AM, Wayne Meissner wrote: > Could the weak ref wiring be done lazily, so the overhead is only > incurred when someone sets an ivar on a java object? > > e.g. when a java object enters jruby, it gets a new lightweight > wrapper, but when someone does an ivar get/set on

Re: [jruby-dev] Improving Ruby to Java call performance: no instance vars or singletons

2010-06-13 Thread Charles Oliver Nutter
On Sun, Jun 13, 2010 at 2:51 AM, Yoko Harada wrote: > This performance improvement will be nice for embedding users since > objects are going back and forth between Ruby and Java. > > If Java interface is implemented by Ruby, and the instance of that > type is used in Java, does this change cause

Re: [jruby-dev] Improving Ruby to Java call performance: no instance vars or singletons

2010-06-13 Thread Charles Oliver Nutter
On Sat, Jun 12, 2010 at 3:53 PM, Ola Bini wrote: > I do see the need to make these kind of changes, based on their performance > impact. But I still have reservations (maybe because I'm one of the people > who write code that usually sets instance variables on Java objects, and > opens up the meta

Re: [jruby-dev] Improving Ruby to Java call performance: no instance vars or singletons

2010-06-12 Thread Wayne Meissner
Could the weak ref wiring be done lazily, so the overhead is only incurred when someone sets an ivar on a java object? e.g. when a java object enters jruby, it gets a new lightweight wrapper, but when someone does an ivar get/set on it, it looks for the ivar holder for the java object in the weak

Re: [jruby-dev] Improving Ruby to Java call performance: no instance vars or singletons

2010-06-12 Thread Yoko Harada
On Sat, Jun 12, 2010 at 11:41 AM, Charles Oliver Nutter wrote: > One of the primary remaining perf challenges for JRuby is the cost of > bringing Java objects into the Ruby environment. Currently, all > objects get wrapped with a small wrapper object that implements > IRubyObject. This is primaril

Re: [jruby-dev] Improving Ruby to Java call performance: no instance vars or singletons

2010-06-12 Thread Ola Bini
On 2010-06-12 10.41, Charles Oliver Nutter wrote: One of the primary remaining perf challenges for JRuby is the cost of bringing Java objects into the Ruby environment. Currently, all objects get wrapped with a small wrapper object that implements IRubyObject. This is primarily because all our ca

[jruby-dev] Improving Ruby to Java call performance: no instance vars or singletons

2010-06-12 Thread Charles Oliver Nutter
One of the primary remaining perf challenges for JRuby is the cost of bringing Java objects into the Ruby environment. Currently, all objects get wrapped with a small wrapper object that implements IRubyObject. This is primarily because all our call logic requires receivers and arguments to all be