Details
-
Type:
Bug
-
Status:
Resolved
-
Priority:
Major
-
Resolution: Fixed
-
Affects Version/s: JRuby 1.4
-
Fix Version/s: None
-
Component/s: Performance
-
Labels:None
-
Number of attachments :
Description
Range#min() and Range#max() perform sorting instead of running in O(1) time
actually MRI has the same behavior, it iterates over the range until it gets the value. Ruby 1.9 changes this behavior and gets the last or first value directly.