-
Notifications
You must be signed in to change notification settings - Fork 381
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
refactor: addr_set.gno modification proposal #1947
base: master
Are you sure you want to change the base?
Conversation
@leohhhn @zivkovicmilos @jaekwon I was looking on std package by curiosity and saw some TODOs on the add_set.gno file, so I made this PR. Is my commit OK/good? |
Codecov ReportAll modified and coverable lines are covered by tests ✅
Additional details and impacted files@@ Coverage Diff @@
## master #1947 +/- ##
==========================================
- Coverage 48.25% 47.20% -1.06%
==========================================
Files 408 362 -46
Lines 62338 59027 -3311
==========================================
- Hits 30081 27861 -2220
+ Misses 29749 28862 -887
+ Partials 2508 2304 -204 ☔ View full report in Codecov by Sentry. |
…ons to the struct
This PR is stale because it has been open 3 months with no activity. Remove stale label or comment or this will be closed in 3 months. |
Description:
As I was diving into the std package, I saw some TODOs on addr_set.gno, where @jaekwon proposes to use avl tree (binary tree) to optimize the code.
So as a contribution, I modified the file so that the structure and all the functions use avl package. (Many thanks to @moul for trusting us and giving the inspiration/confidence, and @leohhhn and others from the team for helping us each time we need it)
I don't know if the way I modified the file corresponds to @jaekwon idea/vision of the thing.
Contributors' checklist...
BREAKING CHANGE: xxx
message was included in the description