Hi.
The stopgap for RubyGems now seems to be this method, where it has spent
more cycles and hours than I care to count:
def reduce_spec(yaml_spec)
result = ""
state = :copy
x=0
yaml_spec.each do |line|
if state == :copy && line =~ /^\s+files:\s*$/
state = :skip
result << line.sub(/$/, " []")
elsif state == :skip
if line !~ /^\s+-/
state = :copy
end
end
result << line if state == :copy
end
result
end
I can't really say that it hangs there, it seems to continue. But the
yaml_spec is a string about 3500000bytes long, and I haven't even seen it
reach end.
Is there some obvious point in this code where the JRuby internals could be
optimized to make these operations usable?
Regards
Ola Bini
-------------------------------------------------------
This SF.Net email is sponsored by xPML, a groundbreaking scripting language
that extends applications into web and mobile media. Attend the live webcast
and join the prime developer group breaking into this new coding territory!
http://sel.as-us.falkag.net/sel?cmd=lnk&kid=110944&bid=241720&dat=121642
_______________________________________________
Jruby-devel mailing list
Jruby-devel@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/jruby-devel