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 47.20%. Comparing base (c628334) to head (a66aeb7).
Report is 491 commits behind head on master.

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.
📢 Have feedback on the report? Share it here.

Copy link

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.

@github-actions github-actions bot added Stale and removed Stale labels Nov 17, 2024
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