Skip to content

Conversation

@Beaness
Copy link
Contributor

@Beaness Beaness commented Apr 22, 2025

This pull request reduces the memory allocated for chunk rewriting
image
Its a fairly simple optimization as we know the chunk size beforehand

Also for bulk chunk rewriting it no longer uses an ByteArrayOutputStream as once again we know the size beforehand.

Copy link
Member

@FlorianMichael FlorianMichael left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Thank you, much appreciated! I pushed some more code cleanup

@FlorianMichael FlorianMichael merged commit 153eedd into ViaVersion:master Apr 22, 2025
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