Repository navigation
optimize tryToRemoveNestedFields - #5913
Conversation
Signed-off-by: Simeon Widdis <sawiddis@amazon.com>
PR Reviewer Guide 🔍Here are some key observations to aid the review process:
|
PR Code Suggestions ✨Explore these optional code suggestions:
|
Codecov Report✅ All modified and coverable lines are covered by tests. ❌ Your project check has failed because the head coverage (75.38%) is below the target coverage (99.00%). You can increase the head coverage or adjust the target coverage. Additional details and impacted files@@ Coverage Diff @@
## main #5913 +/- ##
=========================================
Coverage 75.38% 75.38%
+ Complexity 10386 10383 -3
=========================================
Files 962 962
Lines 41089 41079 -10
Branches 4681 4679 -2
=========================================
- Hits 30975 30969 -6
+ Misses 8806 8804 -2
+ Partials 1308 1306 -2
Flags with carried forward coverage won't be shown. Click here to find out more. ☔ View full report in Codecov by Harness. 🚀 New features to boost your workflow:
|
Description
In cases with over 10k nested fields, the nested loop in this function is very slow. Rewrite to O(n).
In a local benchmarking case with ~70000 fields, this reduced query times from 40s to 600ms.
Profile data from before state (frame shows up across other threads, in total takes up ~97.5%):
Related Issues
N/A
Check List
--signoffor-s.By submitting this pull request, I confirm that my contribution is made under the terms of the Apache 2.0 license.
For more information on following Developer Certificate of Origin and signing off your commits, please check here.