Skip to content
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

Draft
wants to merge 9 commits into
base: master
Choose a base branch
from

Conversation

MalekLahbib
Copy link
Contributor

@MalekLahbib MalekLahbib commented Apr 18, 2024

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...
  • Added new tests, or not needed, or not feasible
  • Provided an example (e.g. screenshot) to aid review or the PR is self-explanatory
  • Updated the official documentation or not needed
  • No breaking changes were made, or a BREAKING CHANGE: xxx message was included in the description
  • Added references to related issues and PRs
  • Provided any useful hints for running manual tests
  • Added new benchmarks to generated graphs, if any. More info here.

@github-actions github-actions bot added the 📦 🤖 gnovm Issues or PRs gnovm related label Apr 18, 2024
@MalekLahbib
Copy link
Contributor Author

@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?

@MalekLahbib MalekLahbib changed the title refactor:addr_set.gno modification proposal refactor: addr_set.gno modification proposal Apr 18, 2024
Copy link

codecov bot commented Apr 18, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 44.53%. Comparing base (3d1d26c) to head (88bd5ce).

Additional details and impacted files
@@            Coverage Diff             @@
##           master    #1947      +/-   ##
==========================================
- Coverage   47.78%   44.53%   -3.25%     
==========================================
  Files         393      434      +41     
  Lines       61608    65512    +3904     
==========================================
- Hits        29437    29176     -261     
- Misses      29701    33924    +4223     
+ Partials     2470     2412      -58     

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
📦 🤖 gnovm Issues or PRs gnovm related
Projects
Status: No status
Status: No status
Status: Triage
Development

Successfully merging this pull request may close these issues.

1 participant