Macã®JRubyã®èµ·åã2åéããªã£ã
åã®è¨äºã®ç¶ããjava -helpã«32bitèµ·åãªãã·ã§ã³ãæ¸ãã¦ãã£ã
.zshrcã¨ãã«æ¸ãã¦ãã
export 'JRUBY_OPTS=-X-C' export 'JAVA_OPTS=-d32'
試ã
time ruby -rubygems -ve 'require "active_support"; puts Time.now'
jruby 1.5.3 (ruby 1.8.7 patchlevel 249) (2010-09-28 7ca06d7) (Java HotSpot(TM) Client VM 1.6.0_22) [i386-java] Thu Feb 24 17:17:54 +0900 2011 ruby -rubygems -ve 'require "active_support"; puts Time.now' 1.33s user 0.16s system 64% cpu 2.331 total
俺ã®MacbookProã§ã¯-X-Cã§0.3ç§ãããã-d32ã§ããã«1.5ç§éããªã£ãã
3ç§è¿ãããã£ã¦ãèµ·åæéã1.3ç§ã«ãªã£ãï¼ï¼ãããå¬ããã
ãã¨ãæ®æ®µã®javaã³ãã³ãã§ã¯JAVA_OPTSã¯ç¹ã«æå¹ã«ãªã£ã¦ãªããããã64bit serverçãèµ·åããã
æ»ãæã¯
export 'JAVA_OPTS=-d64'