当前位置:网站首页>GVM use
GVM use
2022-07-04 20:47:00 【The great man ate a Kun on the day he was alive】
1.GVM What is it
GraalVM Is a high-performance runtime , Significantly improve application performance and efficiency , Great for microservices . It is designed to Java,JavaScript, be based on LLVM Language ( for example C and C ++) And other applications written in dynamic languages . It eliminates the isolation between programming languages , The interoperability of shared runtime is realized .
Refer to official documentation https://www.graalvm.org/docs/introduction/
GraalVM It can run independently , It can also be used as OpenJDK or Node.js Part of the platform is embedded , Even in Oracle Execute... In the database .
Use GraalVM Can be Java The machine code directly compiled into binary is applied to generate a Native Image, Let this program run like a general binary file ,Native Image You can start a faster Java application , Native Image Quick start feature , It can achieve the purpose of server free computing .
2. What's the advantage
GraalVM It can run independently , It can also be used as OpenJDK or Node.js Part of the platform is embedded , Even in Oracle Execute... In the database . It's hanging anyway .
Use GraalVM Can be Java The machine code directly compiled into binary is applied to generate a Native Image, Let this program run like a general binary file ,Native Image You can start a faster Java application , Native Image Quick start feature , It can achieve the purpose of server free computing .
You can also reuse data from Java、R or Python The library of , It doesn't have to be used in jython,j++, That kind of Library .
And it can be based on jvm Create a native image for your application . The image generation process uses static analysis to find slave images Java Method can access any code , Then execute completely in advance (AOT) compile . The generated native binary file contains the whole program in the form of machine code , For immediate execution . It can be linked to other local programs , You can also choose to include GraalVM compiler , To provide real-time monitoring (JIT) Supplementary support for compilation , To run any based on graalvm High performance language for . For additional performance , The native image can be built by optimizing the configuration file collected in the previous run of the application
3. Use
gu --version
gu install native-image
gu list Check for success :
./helloworld perform
jar --create --verbose --file HelloWorld.jar --main-class HelloWorld *.class
time java -jar HelloWorld.jar
time ./helloworld
边栏推荐
猜你喜欢
随机推荐
Cdga | six principles that data governance has to adhere to
Why is TCP three handshakes and four waves
科普达人丨一文看懂阿里云的秘密武器“神龙架构”
Flet tutorial 06 basic introduction to textbutton (tutorial includes source code)
电脑怎么保存网页到桌面上使用
E-week finance | Q1 the number of active people in the insurance industry was 86.8867 million, and the licenses of 19 Payment institutions were cancelled
How to adapt your games to different sizes of mobile screen
What should I do if my computer sharing printer refuses access
What if the brightness of win11 is locked? Solution to win11 brightness locking
看腾讯大老如何做接口自动化测试
Six stones programming: about code, there are six triumphs
浏览器渲染页面过程
Common verification rules of form components -1 (continuously updating ~)
Understand Alibaba cloud's secret weapon "dragon architecture" in the article "science popularization talent"
Related concepts of federal learning and motivation (1)
LeetCode 871. 最低加油次数
Win11共享文件打不开怎么办?Win11共享文件打不开的解决方法
Every time I look at the interface documents of my colleagues, I get confused and have a lot of problems...
AP8022开关电源小家电ACDC芯片离线式开关电源IC
BFC面试简述