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

Speed ​​up StringConcat with more simpleConcat

XMLWordPrintable

    • Icon: Enhancement Enhancement
    • Resolution: Won't Fix
    • Icon: P4 P4
    • None
    • 24
    • core-libs
    • None

      StringConcatFactory improves startup speed and running performance through simpleConcat, but simpleConcat is currently given priority and only supports the following scenarios:

      // x instanceof Object
      prefix + x
      x = subfix

      // x instanceof Object && z instanceof Object
      x + y

      We can support more scenarios to improve startup performance and running performance, including:

      // x instanceof byte/short/int/char/boolean/float/double
      prefix + x
      x + suffix

      // x instanceof byte/short/int/char/boolean/float/double/Integer/Long/Object
      prefix + suffix

      // x instanceof Object
      x + y + suffix

      // x instanceof Object
      x + y + suffix

            swen Shaojin Wen
            swen Shaojin Wen
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: