RIFE2 v1.3.0 with GraalVM native-image AOT compilation support · Discussion #13...
source link: https://github.com/gbevin/rife2/discussions/13
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
RIFE2 v1.3.0 with GraalVM native-image AOT compilation support #13
RIFE2 v1.3.0 now supports Ahead-Of-Time compilation with GraalVM native-image, keeping your startup time and memory footprint low by doing the heavy lifting up-front. In order to try this out, please download the latest GraalVM JDK 19 distribution, and follow the steps to install Once that is done, package your application as an UberJar and create a single native executable using the following command:
You'll be able to launch it with:
The RIFE2 bootstrap project is fully setup for AOT compilation, so you start there: Below is a screenshot and with statistics of a micro-benchmark I did on my AMD Ryzen 9 5950X 16 Core 128GB dedicated Linux server. Key points:
In comparison, launching the Uber jar with the JVM:
|
Recommend
About Joyk
Aggregate valuable and interesting links.
Joyk means Joy of geeK