3
0
Mirror von https://github.com/PaperMC/Velocity.git synchronisiert 2024-11-17 05:20:14 +01:00
Velocity/native/src/main/c
Andrew Steinborn b3bd773fea Switch out Cloudflare zlib for libdeflate.
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.
2020-05-24 10:56:26 -04:00
..
jni_cipher.c Native cryptography support using mbed TLS 2018-08-04 23:46:41 -04:00
jni_util.c Prettify JNI stuff. 2019-01-11 14:13:13 -05:00
jni_util.h JNI native zlib compression 🔥 2018-08-01 22:22:09 -04:00
jni_zlib_deflate.c Switch out Cloudflare zlib for libdeflate. 2020-05-24 10:56:26 -04:00
jni_zlib_inflate.c Switch out Cloudflare zlib for libdeflate. 2020-05-24 10:56:26 -04:00