aboutsummaryrefslogtreecommitdiffstats
path: root/actionmailer/lib
diff options
context:
space:
mode:
authorTim Lucas <t.lucas@toolmantim.com>2011-09-07 14:21:18 +0300
committerTim Lucas <t.lucas@toolmantim.com>2011-09-07 14:21:18 +0300
commit2147f35df251f215d845e870f21fd4010976eba3 (patch)
tree07a54399fd167a64acb9a511114990348d6430f0 /actionmailer/lib
parent2b354fed34ba78797c9fbe1d0f29c0337f9f6411 (diff)
downloadrails-2147f35df251f215d845e870f21fd4010976eba3.tar.gz
rails-2147f35df251f215d845e870f21fd4010976eba3.tar.bz2
rails-2147f35df251f215d845e870f21fd4010976eba3.zip
Make sure require_tzinfo only calls Kernel#require if TZInfo isn't already present.
This wasn't a problem when require_tzinfo was only called from TimeZone#initialize, but now it's being called for every lookup to TimeZone.[] (via lazy_zones_map) TimeZone lookup can occur when unmarshalling TimeWithZone objects, which is where I first saw the big slowdown (500ms for each Rails action that loaded from Rails.cache)
Diffstat (limited to 'actionmailer/lib')
0 files changed, 0 insertions, 0 deletions