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

Consolidate Object and String Stringifiers

    XMLWordPrintable

Details

    • Enhancement
    • Status: Resolved
    • P4
    • Resolution: Fixed
    • None
    • 12
    • core-libs

    Description

      With JDK-8213478 in place, startup behavior of ISC could improve by consolidating the Object and String Stringifiers into a single one. This allows for a significant reduction in LFs and BMH shapes to make up expressions that mix String and Object arguments, especially for the default strategy.

      While this theoretically introduce an extra branch in cases where we're Stringifying String arguments, microbenchmarks indicate that we're performance neutral (or at least within noise levels) in such cases, while we're significantly improving throughput performance in cases with multiple Object arguments, likely due the simplified shape of the resulting expression.

      Attachments

        Issue Links

          Activity

            People

              redestad Claes Redestad
              redestad Claes Redestad
              Votes:
              0 Vote for this issue
              Watchers:
              1 Start watching this issue

              Dates

                Created:
                Updated:
                Resolved: