HTTPS clone URL
Subversion checkout URL
Please sign in to comment.
Make sure require_tzinfo only calls Kernel#require if TZInfo isn't al…
…ready 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)
- Loading branch information...
Showing with 1 addition and 1 deletion.