From: Yusuke Endoh Date: 2011-07-12T20:33:06+09:00 Subject: [ruby-core:38021] [Ruby 1.9 - Bug #1650][Rejected] Time range === is slow Issue #1650 has been updated by Yusuke Endoh. Status changed from Assigned to Rejected Hello, > If Range#=== works exactly the same as Range#include?, the docs should say that. If they differ when beg/end are numeric, the docs should say that. That is an implementation detail, I think. Not a bug. So I'm closing the ticket. If you want to clarify it as a spec, please register another ticket into feature tracker. Thank you, -- Yusuke Endoh ---------------------------------------- Bug #1650: Time range === is slow http://redmine.ruby-lang.org/issues/1650 Author: Dmitry Bilunov Status: Rejected Priority: Normal Assignee: Akira Tanaka Category: DOC Target version: 1.9.3 ruby -v: ruby 1.9.1p129 (2009-05-12 revision 23412) [x86_64-linux] =begin The following program runs N times slower in ruby19 compared to ruby18. N depends on the input range size. dev@rails ~ $ time ruby19 -rtime -e '(Time.now - 1000000 .. Time.now) === (Time.now - 3)' real 0m0.723s user 0m0.709s sys 0m0.013s dev@rails ~ $ time ruby18 -rtime -e '(Time.now - 1000000 .. Time.now) === (Time.now - 3)' real 0m0.043s user 0m0.039s sys 0m0.005s =end -- http://redmine.ruby-lang.org