SecureGroovyScript.evaluate always parses the Groovy script. There should be an option to cache the parsed script (it is final). Otherwise the performance for some use cases is poor (if the script is called very often). (For details see JENKINS-14614).

          [JENKINS-35071] Do not compile script on every evaluate

          Ulli Hafner created issue -
          R. Tyler Croy made changes -
          Workflow Original: JNJira [ 171284 ] New: JNJira + In-Review [ 184245 ]
          Jesse Glick made changes -
          Labels New: performance
          Jesse Glick made changes -
          Labels Original: performance New: api performance

            jglick Jesse Glick
            drulli Ulli Hafner
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated: