I created a branch to reproduce the performance issue: https://github.com/apache/groovy/commits/nextflow-perf-issue
Here is the test: https://github.com/apache/groovy/blob/nextflow-perf-issue/src/test/groovy/bugs/StubGenTest.groovy After you run the test, you will find Parrot parser runs slower at the first time, and will be much faster when run twice, but still slower than antlr2 parser. Any help is appreciated :-) Cheers, Daniel.Sun ----- Apache Groovy committer & PMC member Blog: http://blog.sunlan.me Twitter: @daniel_sun -- Sent from: http://groovy.329449.n5.nabble.com/Groovy-Dev-f372993.html