Lombok在大型项目中减慢了构建过程 [英] Lombok slowing down build process in large project

查看:872
本文介绍了Lombok在大型项目中减慢了构建过程的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

如果我在一个项目中使用Lombok(大约15个独立的项目 - EJB,Web,......),Lombok会使构建过程减慢2-3倍。有没有解决方案,或龙目岛的缺点?

If I use Lombok in a project (about 15 separate projects - EJB, Web,...) Lombok slows down the build Process about 2-3 times. Is there any solution for this, or is that a disadvantage of Lombok?

只是为了看项目的大小,它大概是
400 @Getter
120 @Data
250 @Setter
100 @EqualsAndHashCode

Just to see the size of the project, it's about 400 @Getter, 120 @Data, 250 @Setter and 100 @EqualsAndHashCode.

环境:IBM Rational Application Developer 8.0.4 with最新版本的龙目岛(0.11.6)

Environment: IBM Rational Application Developer 8.0.4 with newest Version of Lombok (0.11.6)

任何让它更快的想法?

推荐答案

最后,有一个边缘构建可用,它可以加速Lombok!他们做了很多工作来加快速度,现在它对我来说很好。构建时间几乎减半,我不必每次都等待保存文件。

Finally, there is an edge-build available, which speeds up Lombok very much! They did a lot of work speeding it up, it works fine for me now. The build time was nearly halved and I do not have to wait every time saving a file.

我也删除了我的项目以获得速度的比较而且它不是很删除代码和带有lombok-annotations的代码之间存在很大差异。

I also delomboked my project to get a comparison in speed and it is not very much difference between the delomboked code and the code with lombok-annotations.

您可以在此处下载边缘构建:
http://projectlombok.org/download-edge.html

You can download the edge-build here: http://projectlombok.org/download-edge.html

这篇关于Lombok在大型项目中减慢了构建过程的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆