简体   繁体   English

Groovy脚本的Java代码性能

[英]Performance of Java code from Groovy script

I have a method in java and invoke it from java, then I invoke the same method from groovy. 我在Java中有一个方法,并从Java中调用它,然后从groovy中调用了相同的方法。 Is there any impact in terms of performance? 在性能方面有影响吗? When I run the java code from groovy, that code is interpreted? 当我从groovy运行Java代码时,该代码被解释了吗? Thanks in advance 提前致谢

When you run java from groovy, that part becomes normal java execution. 当您从groovy运行Java时,该部分将成为正常的Java执行。 In fact, running 'java' code from groovy is actually a solution to any performance problem you may come up with groovy scripts. 实际上,从groovy运行'java'代码实际上是对groovy脚本可能遇到的任何性能问题的解决方案。 See some comment or this question Just how scalable is Grails? 看到一些评论或这个问题Grails有多可扩展性? in that direction. 在那个方向上。

声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM