Re: Groovy 3 -> 4 Performance Degradation Sample

2022-05-11 Thread MG
Hi Jochen, just a quick feedback: We use distinct classes derived from a Table base class to model concrete database tables (e.g. PERSON_Table, DEPARTMENT_Table, ADDRESS_Table, etc), but the different columns in those tables are not modelled as separate classes, but are just instances of the

Re: Groovy 3 -> 4 Performance Degradation Sample

2022-05-10 Thread Jochen Theodorou
On 09.05.22 22:13, MG wrote: Hi Jochen, our code certainly creates a lot of (short lived) class instances*, but we do not dynamically create new classes, so the overhead of creating the initial Indy callsites should only be incurred once at the beginning, and then should no longer play a role.

Re: Groovy 3 -> 4 Performance Degradation Sample

2022-05-09 Thread MG
Hi Jochen, our code certainly creates a lot of (short lived) class instances*, but we do not dynamically create new classes, so the overhead of creating the initial Indy callsites should only be incurred once at the beginning, and then should no longer play a role. So if the same SQL

Re: Groovy 3 -> 4 Performance Degradation Sample

2022-05-09 Thread Jochen Theodorou
On 09.05.22 17:41, MG wrote: Hi Jochen, since I am not feeling well right now, just some quick answers to some of your questions: 1. I am not at liberty to release the source code from our project, not even partially, so these JARs are currently all I can provide. I felt when I

Re: Groovy 3 -> 4 Performance Degradation Sample

2022-05-09 Thread MG
Hi Jochen, since I am not feeling well right now, just some quick answers to some of your questions: 1. I am not at liberty to release the source code from our project, not even partially, so these JARs are currently all I can provide. I felt when I reported this problem initially,

Re: Groovy 3 -> 4 Performance Degradation Sample

2022-05-08 Thread Jochen Theodorou
On 07.05.22 01:55, MG wrote: Hi Groovy devs, I have finally managed to extract a sample from our Groovy framework that only uses our most basic modules and still exhibits the 2-3x performance degradation between (non-indy) Groovy 3 and Groovy 4 I already described in multiple posts a while ago.

Re: Groovy 3 -> 4 Performance Degradation Sample

2022-05-07 Thread MG
Hi Daniel, could you confirm that with my sample ? I have tried all the optimization settings when you proposed them before ("-Dgroovy.indy.optimize.threshold=0" threw an NPE, but "-Dgroovy.indy.optimize.threshold=2" should lead to the same result as far as I understand), and that alas did

Re: Groovy 3 -> 4 Performance Degradation Sample

2022-05-07 Thread Daniel Sun
Hi mg, Groovy 4 enables indy, i.e. invokedynamic by default, and the default threshold for optimization of indy is 10,000. We can adjust its value by the system property "groovy.indy.optimize.threshold", e.g. "-Dgroovy.indy.optimize.threshold=0". When the related code is executed more

Groovy 3 -> 4 Performance Degradation Sample - Download all Files as single ZIP

2022-05-07 Thread MG
To download all 3 files in a single ZIP, you can use the following URL: https://github.com/mgroovy/groovyperformance/zipball/master/ Cheers, mg

Groovy 3 -> 4 Performance Degradation Sample

2022-05-06 Thread MG
Hi Groovy devs, I have finally managed to extract a sample from our Groovy framework that only uses our most basic modules and still exhibits the 2-3x performance degradation between (non-indy) Groovy 3 and Groovy 4 I already described in multiple posts a while ago. The code was built using