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

Encode image to ResponseWriter directly instead of writing via buffer for lessening memory allocation #65

Merged
merged 5 commits into from
Jan 29, 2025

Conversation

supercaracal
Copy link
Contributor

@supercaracal supercaracal commented Jan 27, 2025

Although it become hard to handle response header correctly, I'd say that it would be better to lessen memory consumption than as is. Would you mind review that this improvement is whether legitimate or not? There might be some pitfalls I missed.

@supercaracal supercaracal marked this pull request as ready for review January 27, 2025 04:40
@supercaracal supercaracal requested a review from etsxxx January 27, 2025 04:40
@supercaracal supercaracal merged commit ca734b0 into master Jan 29, 2025
2 checks passed
@supercaracal supercaracal deleted the fix-encode branch January 29, 2025 12:10
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.

2 participants