aboutsummaryrefslogtreecommitdiffstats
path: root/rails.gemspec
diff options
context:
space:
mode:
authorAndrew White <andrew.white@unboxed.co>2016-09-01 11:28:35 +0100
committerAndrew White <andrew.white@unboxed.co>2016-09-01 13:19:42 +0100
commit8c402ef425771c3dbb4659dd946714e69fdf5ce9 (patch)
tree5a9b64414baedcf1e2b92d389f6f34fb6a9970de /rails.gemspec
parent897ac0ed19e27f782bd3f5131a67b8c9a57f66d3 (diff)
downloadrails-8c402ef425771c3dbb4659dd946714e69fdf5ce9.tar.gz
rails-8c402ef425771c3dbb4659dd946714e69fdf5ce9.tar.bz2
rails-8c402ef425771c3dbb4659dd946714e69fdf5ce9.zip
Cache to_datetime for performance
As demonstrated in #25880 the to_time method converts the utc time instance to a local time instance which is an expensive operation. Since to_datetime involves similar expensive operations we should also cache it to speed up comparison with lots of values.
Diffstat (limited to 'rails.gemspec')
0 files changed, 0 insertions, 0 deletions