Conversation
Codecov ReportAttention: Patch coverage is
Additional details and impacted files@@ Coverage Diff @@
## master #777 +/- ##
==========================================
+ Coverage 46.67% 46.75% +0.07%
==========================================
Files 142 142
Lines 22826 22839 +13
==========================================
+ Hits 10655 10679 +24
+ Misses 12171 12160 -11 ☔ View full report in Codecov by Sentry. |
305cdbd to
cff6b3e
Compare
Snip1d was taking a very long time to compute for high resolution polar images. Since it is computed on a row-by-row basis, however, I found that parallelizing over the rows using multiprocessing provided a big performance improvement (3x faster for my example). Some other things I tried that did not result in a speed improvement: * Using the latest `convolve` from astropy * Using the latest `convolve_fft` from astropy * Performing multithreading instead of multiprocessing * Parallelizing at a finer grain level in the snip1d loops This also includes a test that verifies that the snip1d output does not change. Signed-off-by: Patrick Avery <patrick.avery@kitware.com>
cff6b3e to
9a3c34c
Compare
saransh13
approved these changes
Mar 4, 2025
Member
saransh13
left a comment
There was a problem hiding this comment.
We should add same parallelism to the FastSNIP1D kernel in a future PR.
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.
Snip1d was taking a very long time to compute for high resolution polar images. Since it is computed on a row-by-row basis, however, I found that parallelizing over the rows using multiprocessing provided a big performance improvement (3x faster for my example).
Some other things I tried that did not result in a speed improvement:
convolvefrom astropyconvolve_fftfrom astropyThis also includes a test that verifies that the snip1d output does not change.