Skip to content

Compression level change, speeds up compression speeds.#9703

Closed
PedroMPagani wants to merge 1 commit into
PaperMC:masterfrom
PedroMPagani:compression-patch
Closed

Compression level change, speeds up compression speeds.#9703
PedroMPagani wants to merge 1 commit into
PaperMC:masterfrom
PedroMPagani:compression-patch

Conversation

@PedroMPagani
Copy link
Copy Markdown

@PedroMPagani PedroMPagani commented Sep 10, 2023

You are free to benchmark this on your own, this benchmark from my part was done on DonutSMP events, that get around 700-800 players in a close 400x400 area where there's a lot of Crystal PVP everywhere, lots of chunk interactions etc, compression is highly necessary on environments like this, and a few servers also use this, it's a quick change and most users shouldn't ever feel any need to have this changed but it's a good software improvement if you confirm this should be applied.

This made a buffer compression of around 40kb to 25kb just with little difference from -1, and with MUCH faster speeds.

@PedroMPagani PedroMPagani requested a review from a team as a code owner September 10, 2023 11:52
Copy link
Copy Markdown
Member

@kennytv kennytv left a comment

Choose a reason for hiding this comment

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

This should be merged into the original patch 0706-Use-Velocity-compression-and-cipher-natives.patch, ideally adding a config option for the compression level with the default staying -1 as the middle ground between performance and compression level

@PedroMPagani
Copy link
Copy Markdown
Author

I don't have much time to do this and I also haven't touched much of the patch system, if anyone else who wants to become a contributor of the project wants to take this on, feel free to do the required changes ;)

@Owen1212055
Copy link
Copy Markdown
Member

Superseded

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

Status: Closed

Development

Successfully merging this pull request may close these issues.

3 participants