Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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