activerecord-hackery--ransack/lib/ransack/nodes
Jon Atack 14bc115028 #none? should be much faster than select#empty?
∴ rake benchmarks:select_empty_versus_none
Calculating -------------------------------------
       select.empty?     2.581k i/100ms
               none?    12.755k i/100ms
-------------------------------------------------
       select.empty?     28.826k (± 6.3%) i/s -    144.536k
               none?    268.873k (± 5.9%) i/s -      1.352M

Comparison:
               none?:   268873.0 i/s
       select.empty?:    28826.3 i/s - 9.33x slower
2014-12-10 19:28:08 +01:00
..
attribute.rb Maintain Ruby 1.8.7 syntax compatibility 2014-05-01 15:55:39 +02:00
bindable.rb Extract multi-line ternary out to private method 2014-11-21 20:16:29 +01:00
condition.rb Remove unneeded namespacing 2014-11-21 20:03:20 +01:00
grouping.rb #none? should be much faster than select#empty? 2014-12-10 19:28:08 +01:00
node.rb Maintain Ruby 1.8.7 syntax compatibility 2014-05-01 15:55:39 +02:00
sort.rb Remove unneeded namespacing 2014-11-21 20:03:20 +01:00
value.rb Maintain Ruby 1.8.7 syntax compatibility 2014-05-01 15:55:39 +02:00