aboutsummaryrefslogtreecommitdiffstats
path: root/activesupport/lib/active_support/inflections.rb
diff options
context:
space:
mode:
authorAaron Patterson <aaron.patterson@gmail.com>2014-08-29 18:19:30 -0700
committerAaron Patterson <aaron.patterson@gmail.com>2014-08-29 18:19:30 -0700
commit365aa654d8bbe2889b75df2f5147bc25c54fa751 (patch)
tree15bd7a6b56ccef99b47f4cf35ea758300ab5c0f6 /activesupport/lib/active_support/inflections.rb
parent5e51bdda59c9ba8e5faf86294e3e431bd45f1830 (diff)
downloadrails-365aa654d8bbe2889b75df2f5147bc25c54fa751.tar.gz
rails-365aa654d8bbe2889b75df2f5147bc25c54fa751.tar.bz2
rails-365aa654d8bbe2889b75df2f5147bc25c54fa751.zip
reduce object allocations in utc_offset
`try` allocates an array on every call, we should avoid calling it in hotspots. This reduced AttributeMethodsTest#test_setting_time_zone_aware_attribute_with_string from 18k allocations to 14k
Diffstat (limited to 'activesupport/lib/active_support/inflections.rb')
0 files changed, 0 insertions, 0 deletions