On Tue, 06 Jun 2006, Ola Bini defenestrated me:
>
> 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.

  I did notice for some network code I was running it took a long
time to start running.  So I wonder if we have some issue that could
trim some extra time off the install part of this.

> 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! =)

  This is fantastic.  JRuby will have a good YAML impl and the rest
of the Java community will have access to something also.  Open Source
at its best.

-Tom

-- 
+ http://www.tc.umn.edu/~enebo +---- mailto:[EMAIL PROTECTED] ----+
| Thomas E Enebo, Protagonist  | "Luck favors the prepared    |
|                              |  mind." -Louis Pasteur       |


_______________________________________________
Jruby-devel mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/jruby-devel

Reply via email to