-
Notifications
You must be signed in to change notification settings - Fork 10.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
remove .keys() to avoid creating a tmp list/keyview obj #4031
Conversation
the test seems to only fail in py35-pinned env... weird.. |
Codecov Report
@@ Coverage Diff @@
## master #4031 +/- ##
=======================================
Coverage 85.67% 85.67%
=======================================
Files 165 165
Lines 9726 9726
Branches 1461 1462 +1
=======================================
Hits 8333 8333
Misses 1136 1136
Partials 257 257
|
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
The 2nd and 3rd changes seem straightforward to me, but I wonder what is the impact of the first change (max_level
) in performance.
so performance wise we are avoiding creating a dynamic list of size of both the list. |
@Gallaecio can this be merged ? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
We’ll need at least 1 more approval before merging.
This is a small straight forward refactor to avoid creating a list or keyview object ( list in 2.x and key in 3.x ).
There are other folders where this change can be made but starting with commands folder.