Tuesday, October 27, 2009
Using nailgun for faster JRuby startup
I finally got around to trying nailgun tonight. On OS X with JRuby 1.4.0RC2, I built nailgun using:
Sweet. For small programs, using ruby is still faster than jruby but this makes developing with JRuby faster.
cd JRUBY_HOME/tool/nailgunIn one terminal window just leave a nailgun server running:
./configure
make # I ignored the warning "no debug symbols in executable (-arch x86_64)"
$ jruby --ng-serverWhen you want to run JRuby as a railgun client, try something like:
NGServer started on all interfaces, port 2113.
jruby --ng text-resource.rbOn my MacBook, this cuts about 5 seconds of JRuby startup time off of running this test program.
Sweet. For small programs, using ruby is still faster than jruby but this makes developing with JRuby faster.
Labels: JRuby
Subscribe to Posts [Atom]
