-
-
Notifications
You must be signed in to change notification settings - Fork 102
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 Zero Length Images #160
Fix Zero Length Images #160
Conversation
Codecov Report
@@ Coverage Diff @@
## master #160 +/- ##
==========================================
- Coverage 84.82% 84.32% -0.50%
==========================================
Files 46 48 +2
Lines 1364 1410 +46
Branches 177 187 +10
==========================================
+ Hits 1157 1189 +32
- Misses 159 166 +7
- Partials 48 55 +7
Flags with carried forward coverage won't be shown. Click here to find out more.
Continue to review full report at Codecov.
|
Ooft that stings! Better a working slower solution but ow! |
I am gutted :( |
I'm gonna have a deeper look at the issue here. I'm wondering if there's a less drastic fix. |
That would be great @JimBobSquarePants this needs as many eyes as possible. I've had a final run through with this pr, and am happy with it. |
Hi, when can we expect a release with this? The memory leak fix is really important :) |
I’m awaiting confirmation in the discussion here from a support license holder. |
@mariojsnunes the release is available on the myget feed https://www.myget.org/feed/sixlabors/package/nuget/SixLabors.ImageSharp.Web/1.0.3-alpha.0.4 It would be great to get any feedback on it. |
Tested with OrchardCore on an Azure App Service.
|
Thanks for the feedback @mariojsnunes very useful! I'll get a NuGet release issued ASAP. there's little point holding out. |
Hi folks, I've also just completed some testing of the latest packages from MyGet, and can confirm that they appear to have fixed the issue I raised in #158, magic! |
Ace, thanks for reporting back! |
New NuGet release available. https://www.nuget.org/packages/SixLabors.ImageSharp.Web/1.0.3 |
Prerequisites
Description
Fixes #158
As discussed on the issue the
ConcurrentDictionary
arrangement introduced to replace theAsyncKeyLock
was misbehaving, and not always writing a response, when under high load.This pr rearranges the workers to always return an
ImageWorkResult
from which a response will be written.It also replaces
Lazy
with what is recommended as a better way of controlling asyncConcurrentDictionary
GetOrAdds
Performance numbers drop unfortunately, but still remain better than the
AsyncKeyLock
This pr :
Reqs/sec 6943.78
Master :
Reqs/sec 41455.71
AsyncKeyLock :
Reqs/sec 2299.19
(master at aa1b192)Note: Not rushing this, there's a couple of areas worth looking at a bit further, I will add some comments to the pr