Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: replace function constructor for date formatter with arrow function #154

Merged
merged 12 commits into from
Mar 27, 2024

Conversation

Keelaro1
Copy link
Contributor

@Keelaro1 Keelaro1 commented Mar 7, 2024

No description provided.

@disyakidneyshot disyakidneyshot self-requested a review March 12, 2024 07:06
src/chart/model/date-time.formatter.ts Outdated Show resolved Hide resolved
src/chart/model/time-zone.model.ts Outdated Show resolved Hide resolved
@disyakidneyshot disyakidneyshot force-pushed the remove-date-formatter-function-constructor branch from a912dab to 1b20f7e Compare March 25, 2024 07:14
@Keelaro1
Copy link
Contributor Author

Keelaro1 commented Mar 25, 2024

Rechecked performance with old and new format methods when initially load the chart (no timezones loaded): the values are in general the same:

Old formatter: values are 50.37ms and 39.50ms
chrome_K3bI69uwHC
chrome_wfsybv0lfy

New formatter: values are 48ms and 23ms

hFIdJMxBp2 chrome_RsXt9C4QW9

src/chart/model/time-zone.model.ts Outdated Show resolved Hide resolved
@disyakidneyshot disyakidneyshot merged commit b31b034 into master Mar 27, 2024
2 checks passed
@disyakidneyshot disyakidneyshot deleted the remove-date-formatter-function-constructor branch March 27, 2024 10:07
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

3 participants