Branch: refs/heads/main
Home: https://github.com/WebKit/WebKit
Commit: 367f77ea6640540501134dc9aaf9ca73e7da0886
https://github.com/WebKit/WebKit/commit/367f77ea6640540501134dc9aaf9ca73e7da0886
Author: Yusuke Suzuki <[email protected]>
Date: 2026-04-19 (Sun, 19 Apr 2026)
Changed paths:
M Source/JavaScriptCore/runtime/IntlNumberFormat.cpp
M Source/JavaScriptCore/runtime/IntlNumberFormat.h
Log Message:
-----------
[JSC] Optimize Intl.NumberFormat creation
https://bugs.webkit.org/show_bug.cgi?id=312715
rdar://175107744
Reviewed by Sosuke Suzuki.
We do not need UNumberRangeFormatter* if we do not call range APIs.
This patch lazily creates it when range APIs are called.
* Source/JavaScriptCore/runtime/IntlNumberFormat.cpp:
(JSC::IntlNumberFormat::initializeNumberFormat):
(JSC::IntlNumberFormat::createNumberRangeFormatterIfNecessary):
(JSC::IntlNumberFormat::formatRange):
(JSC::IntlNumberFormat::formatRangeToParts):
(JSC::IntlNumberFormat::formatRange const): Deleted.
(JSC::IntlNumberFormat::formatRangeToParts const): Deleted.
* Source/JavaScriptCore/runtime/IntlNumberFormat.h:
Canonical link: https://commits.webkit.org/311556@main
To unsubscribe from these emails, change your notification settings at
https://github.com/WebKit/WebKit/settings/notifications