Hi,
In message "Re: [ruby-core:23908] [Bug #1650] Time range === is slow"
on Thu, 18 Jun 2009 09:48:30 +0900, Dmitry Bilunov <redmine / ruby-lang.org> writes:
|The following program runs N times slower in ruby19 compared to ruby18.
|N depends on the input range size.
1.9 Range#=== now checks according to enumeration (unless both ends
are integers). It might be improved in the future, but until then, I
recommend you to use t3.between?(t1, t2) instead of (t1 .. t2)===t3.
matz.