-
Notifications
You must be signed in to change notification settings - Fork 1.8k
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(NODE-5854): Conditional logger instantiation and precompute willLog perf fix #3984
Merged
durran
merged 13 commits into
main
from
NODE-5854/logger-instantiation-will-log-perf-fix
Feb 9, 2024
Merged
perf(NODE-5854): Conditional logger instantiation and precompute willLog perf fix #3984
durran
merged 13 commits into
main
from
NODE-5854/logger-instantiation-will-log-perf-fix
Feb 9, 2024
Conversation
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
aditi-khare-mongoDB
changed the title
Node 5854/logger instantiation will log perf fix
perf(NODE-5854): Logger instantiation will log perf fix
Feb 2, 2024
alenakhineika
added
the
Primary Review
In Review with primary reviewer, not yet ready for team's eyes
label
Feb 5, 2024
Could you double-check the list in the PR description? To make sure that all requirements are met. |
aditi-khare-mongoDB
changed the title
perf(NODE-5854): Logger instantiation will log perf fix
perf(NODE-5854): Logger instantiation and precompute willLog perf fix
Feb 5, 2024
aditi-khare-mongoDB
changed the title
perf(NODE-5854): Logger instantiation and precompute willLog perf fix
perf(NODE-5854): Conditional logger instantiation and precompute willLog perf fix
Feb 5, 2024
alenakhineika
previously approved these changes
Feb 6, 2024
alenakhineika
added
Team Review
Needs review from team
and removed
Primary Review
In Review with primary reviewer, not yet ready for team's eyes
labels
Feb 6, 2024
durran
requested changes
Feb 7, 2024
durran
requested changes
Feb 8, 2024
Co-authored-by: Durran Jordan <durran@gmail.com>
durran
approved these changes
Feb 9, 2024
nbbeeken
approved these changes
Feb 9, 2024
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description
Misc perf improvements to logger.
What is changing?
new MongoLogger
is only instantiated on the MongoClient when at least one of the component severities is turned on.willLog
is now a precomputed nested object rather than a function call (access is cheaper than a function)Is there new documentation needed for these changes?
Not until logging is released NODE-5672
What is the motivation for this change?
To align with the company wide perf initiative and ensure that the logger is optimized.
Double check the following
npm run check:lint
scripttype(NODE-xxxx)[!]: description
feat(NODE-1234)!: rewriting everything in coffeescript