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

Translation of switch with record patterns could be improved

    XMLWordPrintable

Details

    • Enhancement
    • Resolution: Fixed
    • P3
    • 20
    • 20
    • tools
    • None
    • b27

    Description

      Currently, record patterns in switches are implemented effectively as guards. This does not scale very well for long switches, where the same evaluations may be done many times. It would be better to factor out the common prefixes, and created nested switches.

      Attachments

        Issue Links

          Activity

            People

              jlahoda Jan Lahoda
              jlahoda Jan Lahoda
              Votes:
              0 Vote for this issue
              Watchers:
              4 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: