Ruby ã«ã¯ä½¿ãããªããªã£ãã¡ã¢ãªãèªåçã«æ¤åºã解æ¾ãã¦ããã ã¬ãã¼ã¸ã³ã¬ã¯ã·ã§ã³ã®æ©è½ãããã ãã®ç¯ã§ã¯ãã®ã¬ãã¼ã¸ã³ã¬ã¯ã·ã§ã³ã®è©³ç´°ã追ã£ã¦ããã ãªãã¸ã§ã¯ãã®ç®¡ç Ruby ã® GC 㯠Ruby ã®ãªãã¸ã§ã¯ãã®ã¿ã対象ã ããã¤ãRuby ã çæã管çãã¦ããã¡ã¢ãªã«ãªãã¨ãããªããéã«è¨ãã¨ã¦ã¼ã¶ãåæã« å²ããã¦ãã¡ã¢ãªã¾ã§ã¯é¢åãã¿ã¦ãããªãã¨ãããã¨ã ããã¨ã㰠以ä¸ã®é¢æ°ã¯ã¡ã¢ãªãªã¼ã¯ãèµ·ããã void koreha_dame() { malloc(1024); /* ã¡ã¢ãªãããã£ã¦ã¯æ¨ã¦ã */ } ä¸æ¹ã§ä»¥ä¸ã®é¢æ°ã¯ã¡ã¢ãªãªã¼ã¯ãèµ·ãããªãã void daijoubu() { rb_ary_new(); /* Ruby ã®é åãä½ã£ã¦ã¯æ¨ã¦ã */ } Ruby ã®ãªãã¸ã§ã¯ãã¯ããããã« struct RVALUE ã ã£ãããããªã ã¸ã§ã¯ãã®ç®¡ç
http://d.hatena.ne.jp/Gimite/20080802/1217647596 ã§ã¡ãã£ã¨æãåºãããåãããã£ã¦ã¿ããã£ãå®é¨ããã£ã¦ã¿ããã ãããæã£ãéããªæãã ã£ãã class Fixnum def times i = 0 s = self while i < s yield i i += 1 end end end s = 0 1000000.times{|i| s+=i } p s ã¿ãããªã³ã¼ããæ¸ãããã§ãããåç¥ã®éãã Ruby ã® Fixnum#times 㯠C è¨èªã§å®è£ ããã¦ã¾ããããã Ruby ã§å®è£ ããªããããå½ç¶é ããªãã¾ãããã³ãæéã®ã ãã§ããå®ã¯ããã§ããªããã§ãã > time ruby1.9 bench.rb 499999500000 ruby1.9 bench.rb 0.10s user 0.00s system 91%
ã¨è¨ãã¤ã¤ãèªåã§ã¯Mongrel使ã£ã¦ãªãï¼ä¸»ã«lighttpdï¼ã®ã§ããã RailsChatã§shachiããããã¾ãã¾ã¼ã®maihaããã笹ç°ãããã®ããããã¨è©±ãã¦ãæã«åºã¦ãããæè¿ã®Webãµã¼ãã®ã¡ã¢ã thin 軽éã§é«éãããã Ebb libevã¨ãã使ã£ã¦ãã¦thinããéããããã å°ãããã¡ã¤ã«ãå¼±ç¹ã ã£ãããæè¿å æããããããã swiftply Webãµã¼ãã§ã¯ãªããããã¯ã·ãã¬ã¼ã ã¯ã¼ã¯ã (See also Swiftiplyã®ã¢ã¼ããã¯ãã£ã¨ãã³ããã¼ã¯) ãã¨ã§è©¦ãã 話ã¯å¤ããã¾ãããä¸è¿°ã®ããã°ã©ã ã®å¤§åã®å®è£ ã¯Cã§æ¸ããã¦ãã¦ã ã¤ã³ã¿ã¼ãã§ã¤ã¹ã®é¨åã ãRubyã§å®è£ ããã¦ããæãã®ãã®ã å¤ãã§ããããããããRubyã®ç骨é ã ã¨æãã ããããªè¨èªã使ã£ã¦ããããã©ã æè¿ã¯Cã¨Rubyã®çµã¿åãããè¯ãæãã§ãã Cè¨èªç¨ã®é«æ§è½ããªã
ã©ã³ãã³ã°
ã©ã³ãã³ã°
ã©ã³ãã³ã°
ãªãªã¼ã¹ãé害æ å ±ãªã©ã®ãµã¼ãã¹ã®ãç¥ãã
ææ°ã®äººæ°ã¨ã³ããªã¼ã®é ä¿¡
å¦çãå®è¡ä¸ã§ã
j次ã®ããã¯ãã¼ã¯
kåã®ããã¯ãã¼ã¯
lãã¨ã§èªã
eã³ã¡ã³ãä¸è¦§ãéã
oãã¼ã¸ãéã
{{#tags}}- {{label}}
{{/tags}}