-
-
Notifications
You must be signed in to change notification settings - Fork 853
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
Optimize bokeh blur convolution #1475
Conversation
Investigating the test failures with the effect on smaller image regions, and also noticed a previously existing bug that was likely causing some out of bounds writes in the past, very weird we hadn't spotted that one before. Glad it popped up now! 😄 EDIT: fixed in 7db1225 🎉 |
2913201
to
3180ec4
Compare
Removed the ImageSharp/tests/ImageSharp.Tests/Processing/Processors/Convolution/BokehBlurTest.cs Lines 177 to 183 in ff94d20
|
This is concerning. We weren't getting any throws for this in previous runs. |
Codecov Report
@@ Coverage Diff @@
## master #1475 +/- ##
==========================================
+ Coverage 83.49% 83.55% +0.06%
==========================================
Files 742 741 -1
Lines 32347 32462 +115
Branches 3639 3648 +9
==========================================
+ Hits 27009 27125 +116
Misses 4625 4625
+ Partials 713 712 -1
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
Reverted to draft as I just had some new ideas for some other possibly juicy optimizations to add 😋 |
Alright, happy with the progress so far, I'd say this PR is good for review, and we can always revisit later on 🎉 |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
LGTM. Very nice improvement! 🚀
Optimize bokeh blur convolution
Prerequisites
Description
Optimized the bokeh blur effect, with a more specialized variation of the changes introduced in #1465.
Benchmark
EDIT: updated benchmark after 2e53a44.
EDIT: updated benchmark after e4ba017.
EDIT: updated benchmark after 442e467 and c38fc81.