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

Translation of switch with record patterns could be improved

XMLWordPrintable

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

      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.

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

              Created:
              Updated:
              Resolved: