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

Optimization of Stream and Resource Management #21631

Open
wants to merge 1 commit into
base: dev
Choose a base branch
from

Conversation

1d0n7kn0w
Copy link
Contributor

  • Replaced TryCopyToMemoryStreamAsync methods with direct response stream returns in AliyunBlobProvider, AwsBlobProvider, AzureBlobProvider, and FileSystemBlobProvider.
  • Used using to properly dispose of Image objects in ImageSharpImageCompressorContributor and ImageSharpImageResizerContributor.
  • Replaced Dispose calls with DisposeAsync for asynchronous resource management in ImageSharpImageCompressorContributor and ImageSharpImageResizerContributor.
  • Simplified image resizing code in SkiaSharpImageResizerContributor with nested using statements.

Description

Resolves #xxxx (write the related issue number if available)

TODO: Describe what this PR has changed, add screenshot or animated GIF if available, write if it is a breaking change, and how to fix the breaking changes for existing applications if so.

Checklist

  • I fully tested it as developer / designer and created unit / integration tests
  • I documented it (or no need to document or I will create a separate documentation issue)

How to test it?

Please describe how this can be tested by the test engineers if it is not already explicit - or remove this section if no need to description.

- Replaced TryCopyToMemoryStreamAsync methods with direct response stream returns in AliyunBlobProvider, AwsBlobProvider, AzureBlobProvider, and FileSystemBlobProvider.
- Used using to properly dispose of Image objects in ImageSharpImageCompressorContributor and ImageSharpImageResizerContributor.
- Replaced Dispose calls with DisposeAsync for asynchronous resource management in ImageSharpImageCompressorContributor and ImageSharpImageResizerContributor.
- Simplified image resizing code in SkiaSharpImageResizerContributor with nested using statements.
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