Fix "has map" performance - [MOD-9687]#6636
Merged
Conversation
Contributor
Automated performance analysis summaryThis comment was automatically generated given there is performance data available. In summary:
You can check a comparison in detail via the grafana link Performance Improvements - Comparison between master and guyav-fix_hasMap_performance.Time Period from 30 days ago. (environment used: oss-standalone)
Performance Regressions and Issues - Comparison between master and guyav-fix_hasMap_performance.Time Period from 30 days ago. (environment used: oss-standalone)
Tests with No Significant Changes (29 tests)Tests with No Significant Changes
|
Codecov Report✅ All modified and coverable lines are covered by tests. Additional details and impacted files@@ Coverage Diff @@
## master #6636 +/- ##
==========================================
- Coverage 87.45% 87.42% -0.04%
==========================================
Files 282 282
Lines 44844 44844
Branches 7747 7747
==========================================
- Hits 39219 39204 -15
- Misses 5507 5522 +15
Partials 118 118
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Sentry. 🚀 New features to boost your workflow:
|
alonre24
approved these changes
Aug 13, 2025
Contributor
|
Successfully created backport PR for |
Contributor
|
Successfully created backport PR for |
This was referenced Aug 13, 2025
Contributor
|
Successfully created backport PR for |
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.
Describe the changes in the pull request
Fix "has map" performance by using the cached boolean value
resp3of the reply, instead of checking with the redis API for every serialized result.The solution assumes redis version >= 7 (which is true for
2.8and later)The macros replaced are:
But since
2.8and later versions reject redis < 7.1, the API is available, so they can be reduced to theis_resp3(ctx)check.Mark if applicable