[webkit-changes] [WebKit/WebKit] c779aa: [JSC] TimeZone Cache should be per-process level
Yusuke Suzuki
noreply at github.com
Wed Dec 4 11:08:09 PST 2024
Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: c779aa30eced87609c7c808d672a8f23c5c4821d
https://github.com/WebKit/WebKit/commit/c779aa30eced87609c7c808d672a8f23c5c4821d
Author: Yusuke Suzuki <ysuzuki at apple.com>
Date: 2024-12-04 (Wed, 04 Dec 2024)
Changed paths:
M Source/JavaScriptCore/runtime/JSDateMath.cpp
Log Message:
-----------
[JSC] TimeZone Cache should be per-process level
https://bugs.webkit.org/show_bug.cgi?id=284023
rdar://140897720
Reviewed by Yijia Huang.
TimeZone cache is right now per-VM level. This is OK if we only have one
VM. But if we have many workers, each worker ends up loading TimeZone
information separately while it rarely changes. This patch makes the
cache per-process level so that we do not need to query to super costly
ICU TimeZone retrieval functions.
* Source/JavaScriptCore/runtime/JSDateMath.cpp:
(JSC::timeZoneChangeNotification):
(JSC::retrieveTimeZoneInformation):
(JSC::DateCache::timeZoneCacheSlow):
Canonical link: https://commits.webkit.org/287353@main
To unsubscribe from these emails, change your notification settings at https://github.com/WebKit/WebKit/settings/notifications
More information about the webkit-changes
mailing list