Uploaded image for project: 'JDK'
  1. JDK
  2. JDK-8199862

Examine ProxyBuilder::referencedTypes startup cost

    Details

    • Type: Enhancement
    • Status: Resolved
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 9, 10, 11
    • Fix Version/s: 11
    • Component/s: core-libs

      Description

      Analysing profiles of applications doing annotation processing during startup show that ProxyBuilder::referencedTypes can take a disproportionate amount of time. Mainly this is due to depending on numerous stream classes and setting up a number of lambdas, but also minor things like cloning the arrays of parameter and exception types play a part.

      Desugaring and optimizing the code to calculate referencedTypes should be considered.

        Attachments

          Activity

            People

            • Assignee:
              redestad Claes Redestad
              Reporter:
              redestad Claes Redestad
            • Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

              • Created:
                Updated:
                Resolved: