-
Notifications
You must be signed in to change notification settings - Fork 93
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
improve eachi for sorted_set #1456
improve eachi for sorted_set #1456
Conversation
illusory0x0
commented
Jan 9, 2025
•
edited
Loading
edited
Here are a few observations and potential issues from the provided
These are the key observations from the diff. The changes seem to simplify the code, but they introduce potential risks related to recursion depth and mutable state. |
84ab135
to
5d98c8a
Compare
|
The depth never be too large since we are using balanced binary tree. I think dfs is acceptable. Another question: Do we really need |
self.size < 10000,use this impl, otherwise use original impl
|
Pull Request Test Coverage Report for Build 4688Details
💛 - Coveralls |
5d98c8a
to
ac12c33
Compare