Uploaded image for project: 'Groovy'
  1. Groovy
  2. GROOVY-10715

Make StreamingTemplateEngine support reusing ClassLoader

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 4.0.5
    • None
    • None

    Description

      StreamingTemplateEngine creates a new ClassLoader instance each time it tries to create a template instance. As a result, we can not reuse the class cache of GroovyClassLoader and save the time of compilation.

      GStringTemplateEngine supports option groovy.GStringTemplateEngine.reuseClassLoader to reuse GroovyClassLoader, we can do the same thing for StreamingTemplateEngine, e.g. groovy.StreamingTemplateEngine.reuseClassLoader

      Attachments

        Issue Links

          Activity

            People

              daniel_sun Daniel Sun
              daniel_sun Daniel Sun
              Votes:
              0 Vote for this issue
              Watchers:
              2 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: