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

Avoid lambda usage in StringConcatFactory initializer

    XMLWordPrintable

    Details

    • Type: Enhancement
    • Status: Closed
    • Priority: P4
    • Resolution: Fixed
    • Affects Version/s: 9
    • Fix Version/s: 9
    • Component/s: core-libs
    • Subcomponent:
    • Resolved In Build:
      b115
    • CPU:
      generic
    • OS:
      generic
    • Verification:
      Not verified

      Description

      Desugaring the lambda used in the initializer reduces the number of loaded classes and initialization time of the first string concatenation in a trivial test.

      The improvement diminishes slightly when running in MH_INLINE_SIZED_EXACT mode (32 -> 24 fewer classes).

        Attachments

          Activity

            People

            Assignee:
            redestad Claes Redestad
            Reporter:
            redestad Claes Redestad
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Dates

              Created:
              Updated:
              Resolved: