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 <21654050+nodify-at@users.noreply.github.com> * feat: simplify caching logic for resolved options in supportsFastNumbers and isEnglish calls to improve performance Signed-off-by: nodify-at <21654050+nodify-at@users.noreply.github.com> * feat: add new benchmark tests to compare performance with and without Intl.resolvedOptions cache Signed-off-by: nodify-at <21654050+nodify-at@users.noreply.github.com> --------- Signed-off-by: nodify-at <21654050+nodify-at@users.noreply.github.com>
- Loading branch information