Hi!
I worked on AR-JDBC recently. assert_queries in abstract_unit.rb
doesn't work in JRuby. The reason is that 'execute' method is aliased.
After debug, I find removeCachedMethod in CacheSite isn't invoked
(remove in CacheMap) when method is aliased. I can't give the exact
reason because some cod
+1
2007/7/24, Charles Oliver Nutter <[EMAIL PROTECTED]>:
- Annotations for specifying method bindings. This could largely
eliminate the need for manual method-binding code, as well as allow us
to split method implementations by arity and even argument type
I really like this idea.
As we know,
I've committed it to JIRA.
http://jira.codehaus.org/browse/JRUBY-1205
2007/7/16, Charles Oliver Nutter <[EMAIL PROTECTED]>:
Wow, that's a weird one. Looks like a job for Mr. Enebo...unless you
have a patch handy :)
Could you file a JIRA?
- Charlie
-
Hi!
Here is a bug from a Chinese Forum.It's the link if you can read Chinese. :)
http://www.javaeye.com/topic/101327
if "string"
puts "true"
else
puts "false"
end
C Ruby: true
JRuby: false
We know all objects should be true except false and nil, so it's a bug.
I have debugged the code. Th
Hi!
JRuby has a wonderful idea about method which is to generate method
class. We all know that it takes some time to do that, so it's good
idea to save the result.
In JRuby, DumpingInvocationCallbackFactory is used for this purpose.
But the code with which save the result is commented. I think
2007/7/4, Charles Oliver Nutter <[EMAIL PROTECTED]>:
dreamhead wrote:
> Hi, Charlie!
>
> MethodIndex in compiler is worth considering.
>
> The following code is from invokeDynamic of StandardASMCompiler.
> int index = MethodIndex.getIndex(name);
> ...
> if (index !=
Hi, Charlie!
MethodIndex in compiler is worth considering.
The following code is from invokeDynamic of StandardASMCompiler.
int index = MethodIndex.getIndex(name);
...
if (index != 0) {
invokeUtilityMethod("doInvokeDynamicIndexed", callSigIndexed);
In new MethodIndex, index is always greater
Hi, Charlie!
You'd better consider thread-safe in getIndex.
Ye Zheng
--
Everything is simple!
-
To unsubscribe from this list please visit:
http://xircles.codehaus.org/manage_email
There are many IO operations(database) in mingle test, so the
proportion of improvement is decreased.
From bench_method_dispatch.rb, the improvement is 5-10%. Of course,
it's also a special case.
On the other hand, JRuby use intern to compare to String with "==" in
many places, so the improveme
Hi!
This is dreamhead (one of core developers from XRuby) from
ThoughtWorks. I have been working on JRuby performance recently. I
just add RubyID into JRuby which is helpful to performance in XRuby.
RubyID is similar ID(long) in MRI which use ID to replace String to
reduce comparison cost
10 matches
Mail list logo