[#37050] [Feature #735] Date#inspect — "rubikitch ." <redmine@...>

Feature #735: Date#inspect

14 messages 2008/11/09

[#37075] [Feature #747] /\A/u ignores BOM — Shyouhei Urabe <redmine@...>

Feature #747: /\A/u ignores BOM

14 messages 2008/11/12

[#37161] m17n of irb — "Yugui (Yuki Sonoda)" <yugui@...>

Yuguiです。

35 messages 2008/11/24
[#37183] Re: m17n of irb — keiju@... (keiju ISHITSUKA) 2008/11/25

けいじゅ@いしつかです.

[#37203] Re: m17n of irb — "Yugui (Yuki Sonoda)" <yugui@...> 2008/11/26

keiju ISHITSUKA さんは書きました:

[#37292] Re: m17n of irb — Yukihiro Matsumoto <matz@...> 2008/12/06

まつもと ゆきひろです

[#37293] Re: m17n of irb — "Yugui (Yuki Sonoda)" <yugui@...> 2008/12/07

Yuguiです。

[#37298] Re: m17n of irb — Yukihiro Matsumoto <matz@...> 2008/12/07

まつもと ゆきひろです

[#37210] RSS::Maker.create(version) — "Akinori MUSHA" <knu@...>

 RSS::Maker で、 "2.0" 等の文字列でフィードのフォーマットを渡す

15 messages 2008/11/27

[#37213] Re: [ruby-cvs:27586] Ruby:r20368 (trunk): * ext/bigdecimal/bigdecimal.c (BigDecimal_div2): should return — Tadayoshi Funaba <tadf@...>

> * ext/bigdecimal/bigdecimal.c (BigDecimal_div2): should return

8 messages 2008/11/27

[ruby-dev:37051] [Bug #736] Range#include? が遅い

From: "rubikitch ." <redmine@...>
Date: 2008-11-09 20:41:10 UTC
List: ruby-dev #37051
Bug #736: Range#include? が遅い
http://redmine.ruby-lang.org/issues/show/736

起票者: rubikitch .
ステータス: Open, 優先度: Normal

Ruby 1.9でRange#include?がものすごい遅いようです。

require 'benchmark'
RUBY_VERSION                    # => "1.8.7"
Benchmark.bmbm(10) do |b|
  n = 100
  b.report("include") { n.times{ ("an".."ruby").include? "elf" }}
  b.report("between") { n.times{ "elf".between?("an","ruby") }}
end
# >> Rehearsal ---------------------------------------------
# >> include     0.000000   0.000000   0.000000 (  0.000278)
# >> between     0.000000   0.000000   0.000000 (  0.000113)
# >> ------------------------------------ total: 0.000000sec
# >> 
# >>                 user     system      total        real
# >> include     0.000000   0.000000   0.000000 (  0.000233)
# >> between     0.000000   0.000000   0.000000 (  0.000113)


require 'benchmark'
RUBY_VERSION                    # => "1.9.0"
Benchmark.bmbm(10) do |b|
  n = 100
  b.report("include") { n.times{ ("an".."ruby").include? "elf" }}
  b.report("between") { n.times{ "elf".between?("an","ruby") }}
end
# >> Rehearsal ---------------------------------------------
# >> include     0.420000   0.000000   0.420000 (  0.417621)
# >> between     0.000000   0.000000   0.000000 (  0.000116)
# >> ------------------------------------ total: 0.420000sec
# >> 
# >>                 user     system      total        real
# >> include     0.420000   0.000000   0.420000 (  0.422576)
# >> between     0.000000   0.000000   0.000000 (  0.000120)


----------------------------------------
http://redmine.ruby-lang.org

In This Thread

Prev Next