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
// 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
- links to
-
Review(master) openjdk/jdk/20355