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

Precompiled typechecking extension scripts

    Details

    • Type: Improvement
    • Status: Closed
    • Priority: Major
    • Resolution: Fixed
    • Affects Version/s: None
    • Fix Version/s: 2.2.0-beta-1
    • Component/s: Static Type Checker
    • Labels:
      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

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

              Dates

              • Created:
                Updated:
                Resolved: