Mirror von
https://github.com/PaperMC/Velocity.git
synchronisiert 2024-12-28 00:50:29 +01:00
b3bd773fea
libdeflate is significantly faster than vanilla zlib, zlib-ng, and Cloudflare zlib. It is also MIT-licensed (so no licensing concerns). In addition, it simplifies a lot of the native code (something that's been tricky to get right). While we're at it, I have also taken the time to fine-time compression in Velocity in general. Thanks to this work, native compression only requires one JNI call, an improvement from the more than 2 (sometimes up to 5) that were possible before. This optimization also extends to the existing Java compressors, though they require potentially two JNI calls. |
||
---|---|---|
.. | ||
jni_cipher.c | ||
jni_util.c | ||
jni_util.h | ||
jni_zlib_deflate.c | ||
jni_zlib_inflate.c |