luxon
luxon copied to clipboard
Optimize Performance with Caching for Resolved Options and Parsed Locale Strings
Changes
- Caching: Implemented caching to avoid redundant computations of resolved options and locale parsing.
- Efficient Checks: Introduced a final isEnglish variable to efficiently determine if the locale supports English.
- Initialization: supportsFastNumbers is now immediately initialized to prevent unnecessary calls.
Performance Impact
Tests indicate up to a 10x speed improvement with these enhancements.
Issue Fixed
Fixes #1428