Use array lookup instead of recursion in Context#821
Merged
bobstrecansky merged 3 commits intoSep 14, 2022
Conversation
Codecov Report
Additional details and impacted files@@ Coverage Diff @@
## main #821 +/- ##
============================================
+ Coverage 82.82% 83.04% +0.21%
+ Complexity 1829 1828 -1
============================================
Files 223 222 -1
Lines 4723 4725 +2
============================================
+ Hits 3912 3924 +12
+ Misses 811 801 -10
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
Nevay
commented
Sep 10, 2022
brettmc
reviewed
Sep 11, 2022
brettmc
approved these changes
Sep 13, 2022
Nevay
force-pushed
the
feature/context-non-recursive
branch
from
September 13, 2022 18:01
489d44d to
f319f52
Compare
Nevay
force-pushed
the
feature/context-non-recursive
branch
from
September 13, 2022 18:38
acabc72 to
3fc150f
Compare
bobstrecansky
approved these changes
Sep 14, 2022
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.
Prevents leaking memory if
Context::with()is called iteratively; following example throws an out of memory error with the recursive implementation: