Get ready for major announcement: YAML loading for JRuby, totally in Java-land is now functional! I've integrated it with JRuby during the day, and a few minutes ago I managed to use it to install RubyGems and then install the Rake Gem. As you may know, the big hurdle is the 3.5Mb big Gemspec file, which used to take up to an hour to load, if we managed to load it at all. I added two debug statements in remote_installer.rb, before and after the loading of this gemspec. This is the output:
D:\Project\jruby>bin\jruby bin\gem install rake Attempting local installation of 'rake' Local gem file not found: rake*.gem Attempting remote installation of 'rake' Updating Gem source index for: http://gems.rubyforge.org starting YAML-loading it took: 12.548 seconds to load yaml Successfully installed rake-0.7.1 Installing RDoc documentation for rake-0.7.1... It still takes a few minutes, maybe 5-7 to install this gem, but as you can see, we're just spending TWELVE seconds loading YAML. And these twelve seconds are quite bad in itself. 7 of them are spent just creating JRuby objects. When I tried doing the same code without the JRuby-layer, (return Java Maps, Lists and PrivateType's for all objects not available), it took about 5.5 secs. So object creation is really heavy. But anyway, I guess 12 seconds is acceptable for now. Syck does the same file in about 5.5 secs. Right now I'm going to go through my code, fix all the license stuff (I'll release this with a MIT license), add some documentation, upload this to dev.java.net (the project is now approved. everything will soon be available at jvyaml.dev.java.net, but I'll announce it then), and then send you all a patch for this fun stuff! =) Regards Ola Bini _______________________________________________ Jruby-devel mailing list Jruby-devel@lists.sourceforge.net https://lists.sourceforge.net/lists/listinfo/jruby-devel