当前位置:网站首页>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
边栏推荐
- 什么叫内卷?
- Taishan Office Technology Lecture: about the order of background (shading and highlighting)
- Talking about cookies of client storage technology
- Lingyun going to sea | Wenhua online & Huawei cloud: creating a new solution for smart teaching in Africa
- 针对深度学习的“失忆症”,科学家提出基于相似性加权交错学习,登上PNAS
- NLP, vision, chip What is the development direction of AI? Release of the outlook report of Qingyuan Association [download attached]
- 记一次重复造轮子(Obsidian 插件设置说明汉化)
- What if the computer page cannot be full screen? The solution of win11 page cannot be full screen
- 同事的接口文档我每次看着就头大,毛病多多。。。
- Installation and use of VMware Tools and open VM tools: solve the problems of incomplete screen and unable to transfer files of virtual machines
猜你喜欢

C # better operation mongodb database

电脑页面不能全屏怎么办?Win11页面不能全屏的解决方法

Form组件常用校验规则-1(持续更新中~)

From automation to digital twins, what can Tupo do?

Four traversal methods of binary tree, as well as the creation of binary tree from middle order to post order, pre order to middle order, pre order to post order, and sequence [specially created for t

Qt五子棋人机对战画棋子之QPainter的使用误区总结

Installation and use of VMware Tools and open VM tools: solve the problems of incomplete screen and unable to transfer files of virtual machines
Practical examples of node strong cache and negotiation cache

B2B mall system development of electronic components: an example of enabling enterprises to build standardized purchase, sale and inventory processes

Flet教程之 04 FilledTonalButton基础入门(教程含源码)
随机推荐
go语言笔记(4)go常用管理命令
What ppt writing skills does the classic "pyramid principle" teach us?
Aiming at the "amnesia" of deep learning, scientists proposed that based on similarity weighted interleaved learning, they can board PNAS
MySQL中的日期时间类型与格式化方式
Every time I look at the interface documents of my colleagues, I get confused and have a lot of problems...
Jekins initialization password not found or not found
关于联邦学习和激励的相关概念(1)
什么叫内卷?
阿里测试师用UI自动化测试实现元素定位
电脑页面不能全屏怎么办?Win11页面不能全屏的解决方法
Ziguang zhanrui completed the first 5g R17 IOT NTN satellite on the Internet of things in the world
C server log module
[in-depth learning] review pytoch's 19 loss functions
[Beijing Xunwei] i.mx6ull development board porting Debian file system
Selected review | machine learning technology for Cataract Classification / classification
Browser render page pass
mysql语句执行详解
What financial products can you buy with a deposit of 100000 yuan?
In operation (i.e. included in) usage of SSRs filter
Idea case shortcut