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 performance regression in hictk::balance #95

Merged
merged 2 commits into from
Dec 23, 2023
Merged

Fix performance regression in hictk::balance #95

merged 2 commits into from
Dec 23, 2023

Conversation

robomics
Copy link
Contributor

@robomics robomics commented Dec 23, 2023

Regression is caused by calling operator()() of MargsVect inside a loop.
This operator now involves a non-negligible amount of computation when processing high-resolution matrices.
Also remove an unnecessary copy of MargsVect when processing chunked matrices.

Regression is caused by calling operator()() of MargsVect inside a loop.
This operator now involves a non-negligible amount of computation when
processing high-resolution matrices.
Copy link

codecov bot commented Dec 23, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (7be4b2a) 84.77% compared to head (c8f2e06) 84.76%.

Additional details and impacted files
@@            Coverage Diff             @@
##             main      #95      +/-   ##
==========================================
- Coverage   84.77%   84.76%   -0.01%     
==========================================
  Files         101      101              
  Lines        7312     7301      -11     
==========================================
- Hits         6199     6189      -10     
+ Misses       1113     1112       -1     

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

@robomics robomics merged commit 456404b into main Dec 23, 2023
50 checks passed
@robomics robomics deleted the perf/balance branch December 23, 2023 22:09
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant