-
Notifications
You must be signed in to change notification settings - Fork 736
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Optimize Performance with Caching for Resolved Options and Parsed Loc…
…ale Strings (#1642) * feat: optimize performance by adding caching for resolved options and parsed locale strings - Implement caching to avoid redundant computations of resolved options and locale parsing. - Introduce a final `isEnglish` variable to efficiently check if the locale supports English. Signed-off-by: nodify-at <[email protected]> * feat: simplify caching logic for resolved options in supportsFastNumbers and isEnglish calls to improve performance Signed-off-by: nodify-at <[email protected]> * feat: add new benchmark tests to compare performance with and without Intl.resolvedOptions cache Signed-off-by: nodify-at <[email protected]> --------- Signed-off-by: nodify-at <[email protected]>
- Loading branch information
Showing
2 changed files
with
18 additions
and
3 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters