diff options
author | Rolf Timmermans <r.timmermans@voormedia.com> | 2010-11-17 22:23:33 +0800 |
---|---|---|
committer | Aaron Patterson <aaron.patterson@gmail.com> | 2010-11-18 00:37:16 +0800 |
commit | 9244e2ddbd5dbfb32f892bdfc23a928aa06999a5 (patch) | |
tree | 5588197d71722fd93430d1f0fbb027e0f4c45724 /Rakefile | |
parent | 35f25f643cca00c192d971234942d5a0d0e07cc0 (diff) | |
download | rails-9244e2ddbd5dbfb32f892bdfc23a928aa06999a5.tar.gz rails-9244e2ddbd5dbfb32f892bdfc23a928aa06999a5.tar.bz2 rails-9244e2ddbd5dbfb32f892bdfc23a928aa06999a5.zip |
Fixed Ruby 1.8 performance regression for Nodes::In and Nodes::NotIn queries with very wide ranges that was caused by using Range#min and Range#max rather than Range#begin and Range#end. Ruby 1.8 uses Enumerable#min and Enumerable#max in Ranges, which calls to_a internally. It is not necessary to enumerate the range in order to construct the predicates. At the same time, an off-by-one error (failing test) with exclusive-end Ranges in Nodes::NotIn queries was fixed.
Diffstat (limited to 'Rakefile')
0 files changed, 0 insertions, 0 deletions