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

SwitchBootstrap.typeSwitch could be faster

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Fixed
    • Icon: P3 P3
    • 21
    • 20
    • tools
    • None
    • b26

      Currently, the typeSwitch bootstrap will produce a MethodHandle that uses a loop to go over the provided labels. That seems unnecessarily slow, it would be better to use either MethodHandles or generated code to do the instanceof checks.

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

              Created:
              Updated:
              Resolved: