[
https://issues.apache.org/jira/browse/GROOVY-10454?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=17577646#comment-17577646
]
Sean Fitts commented on GROOVY-10454:
-------------------------------------
We just started our upgrade from Groovy 2.5.x, with the first stop being the
current version of Groovy 3.x (3.0.12). This issue has us essentially blocked.
I see a discussion here --
https://lists.apache.org/thread/b6rr59yvwoz40t5gz1ksl5s0gcz0cwxz and this issue
logged against IntelliJ - https://youtrack.jetbrains.com/issue/IDEA-230943, but
no apparent resolution. Is this something we should expect to be fixed? Is it
already addressed in Groovy 4? TIA for any info.
> Performance issue with "Parrot" parser in Groovy 3.x
> ----------------------------------------------------
>
> Key: GROOVY-10454
> URL: https://issues.apache.org/jira/browse/GROOVY-10454
> Project: Groovy
> Issue Type: Bug
> Components: parser-antlr4
> Affects Versions: 3.0.9
> Environment: OpenJdk on Windows & Linux
> Reporter: Rainer Podlas
> Priority: Major
>
> We have recently upgraded from Groovy 2.4.3 to Groovy 3.0.9 and are now
> facing a big performance issue when loading/parsing our Groovy sources.
> In one concrete example we talk about 60 Groovy source files. Loading them
> with Groovy 2.4.3 takes < 40 seconds, whereas loading the same sources with
> Groovy 3.0.9 takes twice the time (~1:20). In another example we notice
> increased parsing duration from ~ 1,5 minutes to 3 minutes, again a doubling
> of the duration.
> In the release notes I read about the new "Parrot" parser, and indeed, once I
> disable it via "{*}groovy.antlr4=false{*}" the parsing duration is "back to
> normal".
> That means for now we have a workaround, but as the new "Parrot" parser is
> going to be the one and only in Groovy 4.x we will be facing a problem in the
> near future ;-(
> Is this performance drop a known issue? I could not find any related tickets?
> Please note that we are loading the Groovy sources via the
> "{*}groovy.lang.GroovyClassLoader{*}" and the method call:
> "{*}loadClass(path, true, false, true);{*}"
> Looking forward to receiving feedback on that.
> Thank you very much!
> Kind regards, Rainer
--
This message was sent by Atlassian Jira
(v8.20.10#820010)