[Backport 2.x] Improve performance for resolving derived fields#16566
Merged
[Backport 2.x] Improve performance for resolving derived fields#16566
Conversation
Doing the type check before the string comparison makes it much faster to resolve derived fields. Signed-off-by: Robson Araujo <robson.araujo@glean.com> (cherry picked from commit e07499a) Signed-off-by: github-actions[bot] <github-actions[bot]@users.noreply.github.com>
Contributor
|
❌ Gradle check result for 8d0c11f: FAILURE Please examine the workflow log, locate, and copy-paste the failure(s) below, then iterate to green. Is the failure a flaky test unrelated to your change? |
reta
approved these changes
Nov 5, 2024
Contributor
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## 2.x #16566 +/- ##
============================================
- Coverage 71.95% 71.91% -0.04%
- Complexity 65440 65446 +6
============================================
Files 5312 5312
Lines 305033 305033
Branches 44443 44443
============================================
- Hits 219475 219365 -110
- Misses 67269 67414 +145
+ Partials 18289 18254 -35 ☔ View full report in Codecov by Sentry. |
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.
Backport e07499a from #16564.