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

fix(3028): Use Arc to reduce clones and improve memory usage in dedupe #3179

Closed
wants to merge 1 commit into from

Conversation

palash25
Copy link

Fixes: #3028
/claim #3028
Summary:
This wraps Value used in dedupe.rs in an Arc to reduce the number of .clones() thereby reducing memory usage

Issue Reference(s):
Fixes #3028

Build & Testing:

  • I ran cargo test successfully.
  • I have run ./lint.sh --mode=fix to fix all linting issues raised by ./lint.sh --mode=check.

Checklist:

  • I have added relevant unit & integration tests.
  • I have updated the documentation accordingly.
  • I have performed a self-review of my code.
  • PR follows the naming convention of <type>(<optional scope>): <title>

@github-actions github-actions bot added the type: fix Iterations on existing features or infrastructure. label Nov 29, 2024
@palash25 palash25 marked this pull request as ready for review November 29, 2024 14:25
@palash25 palash25 changed the title fix: Use Arc to reduce clones and improve memory usage in dedupe fix(3028): Use Arc to reduce clones and improve memory usage in dedupe Nov 29, 2024
@tusharmath
Copy link
Contributor

Hey @palash25! Thank you for your contribution to Tailcall 🙏

Unfortunately, we cannot merge this PR as the changes proposed do not align with the requirements in the linked issue. I encourage you to review once again and open a new PR with the required changes.

Thank you for your understanding 🙌

@tusharmath tusharmath closed this Nov 30, 2024
Copy link

codecov bot commented Nov 30, 2024

Codecov Report

All modified and coverable lines are covered by tests ✅

Project coverage is 86.63%. Comparing base (02c7821) to head (f9def6a).
Report is 3 commits behind head on main.

Additional details and impacted files
@@           Coverage Diff           @@
##             main    #3179   +/-   ##
=======================================
  Coverage   86.63%   86.63%           
=======================================
  Files         277      277           
  Lines       27674    27677    +3     
=======================================
+ Hits        23975    23978    +3     
  Misses       3699     3699           

☔ 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
🙋 Bounty claim type: fix Iterations on existing features or infrastructure.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

feat: make dedupe faster at I/O level.
2 participants