1
0
Fork 0
mirror of https://github.com/rails/rails.git synced 2022-11-09 12:12:34 -05:00
rails--rails/actionpack/lib
Vasiliy Ermolovich 9dd64f2e0c refactor time_zone_options_for_select
BTW, select works quite faster then find_all:
require 'benchmark'

n = [1]*100_000_000
Benchmark.bm do |x|
  x.report { n.select { |a| a > 1 } }
  x.report { n.find_all { |a| a > 1 } }
end

    user     system      total        real
7.590000   0.010000   7.600000 (  7.927171)
9.650000   0.010000   9.660000 (  9.634406)
2012-02-21 19:54:16 +03:00
..
abstract_controller Fix AbstractController::Base#hidden_actions comment 2012-02-18 11:58:53 +04:00
action_controller search private / protected methods in trunk ruby 2012-02-20 11:02:47 -08:00
action_dispatch Merge pull request #5082 from willbryant/assigns_should_not_stringify_values_master 2012-02-20 09:05:56 -08:00
action_pack rails/master is now 4.0.0.beta and will only support Ruby 1.9.3+ 2011-12-20 09:30:37 -06:00
action_view refactor time_zone_options_for_select 2012-02-21 19:54:16 +03:00
sprockets use Hash#delete on styelsheet_link_tag 2012-02-21 08:22:05 +00:00
abstract_controller.rb
action_controller.rb remove autoload UrlWriter, no longer exists 2012-01-29 17:00:37 +05:30
action_dispatch.rb Merge pull request #4248 from andrew/2012 2011-12-31 12:48:19 -08:00
action_pack.rb Updated copyright notices for 2012 2011-12-31 20:30:08 +00:00
action_view.rb Merge pull request #4248 from andrew/2012 2011-12-31 12:48:19 -08:00