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

Speed up MethodType::describeConstable

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Duplicate
    • Icon: P4 P4
    • 24
    • 21
    • core-libs
    • None

      In the benchmarks in JDK-8309413, MethodTypeDesc creation from individual ClassDesc is signifcantly faster than from a descriptor string. We should remove streams in the describeConstable implementation to speed it up and ask users to favor .describeConstable().orElseThrow() over toMethodDescriptorString + ofDescriptor. In addition, we can pass the computed descriptor string to the MTD to speed its descriptorString up as well.

            liach Chen Liang
            liach Chen Liang
            Votes:
            0 Vote for this issue
            Watchers:
            2 Start watching this issue

              Created:
              Updated:
              Resolved: