[equality] Comment out debugging statements in lib.quality/=#65641
Merged
Conversation
Contributor
|
Could we extend the log functions to avoid constructing the logger if we're not at the requested debug level? |
Member
Author
|
@edpaget The problem is that knowing if we are at the requested debug level for this particular process/namespace/file requires constructing a logger (or at least reading into the logging config). Maybe, it is somehow possible to make this check leaner, but it will still be an overhead which is quite redundant for a such heavily called function. |
e4ad95e to
4a9f930
Compare
camsaul
approved these changes
Apr 27, 2026
Member
camsaul
left a comment
There was a problem hiding this comment.
Can you please add a note why you're commenting these out (for performance reasons)? Other than that it looks good to me.
4a9f930 to
5f41f94
Compare
Contributor
e2e tests failed on
|
| File | Test Name |
|---|---|
source-replacement.cy.spec.ts |
scenarios > data-studio > source replacement > Native queries > replaces a table referenced in a native SQL question |
embed-parameters.cy.spec.ts |
scenarios > embedding > sdk iframe embed setup > embed parameters > resources without parameters > shows no parameters message for dashboards without parameters |
maps.cy.spec.js |
scenarios > visualizations > maps > should preserve zoom and pan after resize (#11211) |
query-external.cy.spec.js |
scenarios > question > query > external > can query Mongo database |
This file contains hidden or 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
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.
Having these logging statements has significant impact on allocation rate, even if the requested logging level is disabled. That's because the logging system has to construct the logger object anyway.
I'd argue that having those logging statements always on isn't helpful because enabling debug log in that function would create immense noise because of how often this equality function is being called.