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/action_view
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
..
helpers refactor time_zone_options_for_select 2012-02-21 19:54:16 +03:00
locale Remove not used button translation from av locale 2012-02-14 08:00:42 -02:00
renderer to_proper_path -> to_partial_path 2012-01-31 16:08:11 +01:00
template Merge pull request #5101 from ckdake/ckdake_actionview_handler_reset 2012-02-20 20:49:39 +01:00
testing Remove trailing white-spaces 2011-06-05 10:34:40 -05:00
asset_paths.rb Extract asset paths uri regexp to a constant 2012-01-12 19:51:54 -02:00
base.rb Remove delegation to ActionController::Base 2012-01-18 15:42:08 -03:00
buffers.rb deprecate String#encoding_aware? and remove its usage 2011-12-24 15:57:54 +03:00
context.rb Tidy up pending TODOs after discussion with Mr. Gatoz (@wycats). 2011-05-01 19:39:57 +02:00
flows.rb alias_method added 2012-01-23 21:16:24 +05:30
helpers.rb Move collection radio buttons / check boxes back to FormOptionsHelper 2012-02-02 09:40:25 -02:00
log_subscriber.rb ActionView now has its own logger 2012-01-18 14:30:33 -03:00
lookup_context.rb Bring back rendering templates that start with / in nested structures 2012-01-17 10:04:39 -02:00
path_set.rb We need [] method here. previously it's an array. 2011-08-13 13:13:05 +05:30
railtie.rb ActionView now has its own logger 2012-01-18 14:30:33 -03:00
template.rb Use the right format when a partial is missing. 2012-02-20 17:52:14 -02:00
test_case.rb Revert usage of safe constantize 2012-01-26 20:48:09 +01:00