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

perf: optimize logger #15574

Merged
merged 1 commit into from
Jan 11, 2024
Merged

perf: optimize logger #15574

merged 1 commit into from
Jan 11, 2024

Conversation

patak-dev
Copy link
Member

Description

We were creating the same Intl.DateTimeFormat for each logger. This PR moved it to a global variable inited lazily. On each output, we were also creating a new format function that now is created once per logger.


What is the purpose of this pull request?

  • Bug fix
  • New Feature
  • Documentation update
  • Other

Copy link

stackblitz bot commented Jan 11, 2024

Review PR in StackBlitz Codeflow Run & review this pull request in StackBlitz Codeflow.

@patak-dev patak-dev added the performance Performance related enhancement label Jan 11, 2024
@patak-dev patak-dev merged commit 0fb9071 into main Jan 11, 2024
15 checks passed
@patak-dev patak-dev deleted the perf/optimize-logger branch January 11, 2024 11:52
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
performance Performance related enhancement
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants