perf: speed up scanpy.get.aggregate for sparse#4041
Closed
ilan-gold wants to merge 16 commits intoig/two_pass_hvg_v3from
Closed
perf: speed up scanpy.get.aggregate for sparse#4041ilan-gold wants to merge 16 commits intoig/two_pass_hvg_v3from
scanpy.get.aggregate for sparse#4041ilan-gold wants to merge 16 commits intoig/two_pass_hvg_v3from
Conversation
scanpy.get.aggregate summation
Codecov Report❌ Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## ig/two_pass_hvg_v3 #4041 +/- ##
======================================================
+ Coverage 77.85% 78.53% +0.68%
======================================================
Files 117 118 +1
Lines 12774 12790 +16
======================================================
+ Hits 9945 10045 +100
+ Misses 2829 2745 -84
Flags with carried forward coverage won't be shown. Click here to find out more.
|
Benchmark changes
Comparison: https://github.com/scverse/scanpy/compare/17be530c8822cbaeb629ffd41175a4558031f7eb..baef45cef7f22ef8329b2dca94381dcc8343d5aa More details: https://github.com/scverse/scanpy/pull/4041/checks?check_run_id=70786088065 |
for more information, see https://pre-commit.ci
…into ig/numba_aggregate
f4fa89b to
febc107
Compare
scanpy.get.aggregate summationscanpy.get.aggregate for sparse
scanpy.get.aggregate for sparsescanpy.get.aggregate for sparse
This was referenced Apr 13, 2026
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
A nice testing script:
Details
For me locally, even if I use
numba'snjit(i.e.,parallel=False), this is still faster than multiplication (the current state of things). This means that things will probably also be faster for dask. It is not worth it to convert formats ever.