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

Precompiled typechecking extension scripts

    XMLWordPrintableJSON

Details

    • Improvement
    • Status: Closed
    • Major
    • Resolution: Fixed
    • None
    • 2.2.0-beta-1
    • Static Type Checker
    • None

    Description

      It would be rather desirable to allow pre-compiled typechecking scripts, if reasonably possible.

      Not only the repeated compilation of the script considerably increases the build time (and with hundreds of sources the difference is not negligible); besides, if one uses AST transforms, they get each time applied to the script, too.

      Most transforms are probably not written to do that – myself, I had to check explicitly for sourceUnit.name=='Script1.groovy' and skip the transform in this case, but that's an extremely ugly and highly fragile solution.

      Attachments

        Activity

          People

            melix Cédric Champeau
            oc OC
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved: