Speed ​​up StringConcat with more simpleConcat

XMLWordPrintable

    • Type: Enhancement
    • Resolution: Won't Fix
    • Priority: P4
    • None
    • Affects Version/s: 24
    • Component/s: 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

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

              Created:
              Updated:
              Resolved: