Re: Groovy 4 and Parrot Parser performances

2022-07-24 Thread Jochen Theodorou
On 23.07.22 20:35, Jérémie wrote: Thanks, By precompilation, I was thinking of a real ".class" or an intermediary format I can persist in my jars with by example a maven plugin. I have groovy scripts that I compile/cache the first time the script is used. This process takes minutes with the

Re: Groovy 4 and Parrot Parser performances

2022-07-24 Thread Jochen Theodorou
On 23.07.22 15:02, Jérémie wrote: Hello, I am using Groovy 3 in my project, but I had to turn off the new parser because of its performance. In my benchmark, the loading time of most of my scripts are multiplied by 12. I didn't succeed in reducing this time by using the system properties, so I

Re: Groovy 4 and Parrot Parser performances

2022-07-23 Thread Jérémie
Thanks, By precompilation, I was thinking of a real ".class" or an intermediary format I can persist in my jars with by example a maven plugin. I have groovy scripts that I compile/cache the first time the script is used. This process takes minutes with the parrot parser, and seconds with the old

Re: Groovy 4 and Parrot Parser performances

2022-07-23 Thread o...@ocs.cz
Jérémie, you definitely can precompile scripts. There might be a better/simpler/more reliable way, but what I use for years is essentially this (somewhat simplified for better readability): === @Lazy() static emptyBinding=new Binding() @Lazy() static shell={ def cc=new