Use a global cache for timezone info
commit29b66c714acb91d1b970006a7a3cbd6cf9edf1a3
authorBert Maher <bertrand@fb.com>
Mon, 13 Oct 2014 02:43:47 +0000 (12 19:43 -0700)
committerhhvm-bot <hhvm-bot@fb.com>
Mon, 13 Oct 2014 16:08:16 +0000 (13 09:08 -0700)
tree8f7266eecf09c0e7855b51512e36a312425ae9d1
parent96dec459bb84f606df2fe15c8c82df684b20ed83
Use a global cache for timezone info

Summary: Instead of caching the same info in every thread, share it using a
global AtomicHashArray.  I also considered pre-computing all the tzinfo, but a
good number of them seem unlikely to be used, so they'd just be taking up
space.

Reviewed By: @mclarkelauer

Differential Revision: D1607602
hphp/runtime/base/program-functions.cpp
hphp/runtime/base/timezone.cpp
hphp/runtime/base/timezone.h