当将java工程从eclipse打包成jar文件运行时,如果导出过多的包将会导致程序运行变得非常缓慢。
The option “Package required libraries into generated JAR” copy the libs you use as jar files into your own jar file and the JVM needs to open it (or even extract if it’s compacted) when you run the application.
选取该选项可以使得jar文件运行速度变快。
Jar文件运行缓慢改进
最新推荐文章于 2024-03-29 15:22:36 发布