JNI native zlib compression 🔥

This commit is contained in:
Andrew Steinborn
2018-08-01 22:22:09 -04:00
parent 22dd4bbb99
commit fb4e6fd8f1
22 changed files with 610 additions and 3 deletions

17
native/README.md Normal file
View File

@@ -0,0 +1,17 @@
# velocity-natives
This directory contains native acceleration code for Velocity, along with
traditional Java fallbacks.
## Compression
* **Supported platforms**: macOS 10.13, Linux amd64 (precompiled binary is built on Debian 9 with JDK 8)
* **Rationale**: Using a native zlib wrapper, we can avoid multiple trips into Java just to copy memory around.
## Encryption
* No natives available yet, this will use the support inside your Java install.
## OS support
If you are on Alpine Linux, `apk add libc6-compat` will enable native support.