SwitchBootstrap.typeSwitch could be faster

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Fixed
    • Priority: P3
    • 21
    • Affects Version/s: 20
    • Component/s: 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.

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

              Created:
              Updated:
              Resolved: