Integrated: 8318457: Use prefix-less prepend methods directly to reduce branches in String concat expressions
Claes Redestad
redestad at openjdk.org
Fri Oct 20 11:39:48 UTC 2023
On Wed, 18 Oct 2023 11:56:14 GMT, Claes Redestad <redestad at openjdk.org> wrote:
> In #16006 using `StringConcatFactory` seem to induce a run-to-run variance. One idea to reduce this is to generate expression trees with fewer branches by looking up and using the prefix-less `prepend` methods directly for cases where constant is null/empty so that the prefixed prepender will always deal with a non-null prefix constant.
This pull request has now been integrated.
Changeset: fe529170
Author: Claes Redestad <redestad at openjdk.org>
URL: https://git.openjdk.org/jdk/commit/fe52917054ebed3009391487c304f1fad4271049
Stats: 45 lines in 3 files changed: 15 ins; 10 del; 20 mod
8318457: Use prefix-less prepend methods directly to reduce branches in String concat expressions
Reviewed-by: jlaskey, liach
-------------
PR: https://git.openjdk.org/jdk/pull/16244
More information about the core-libs-dev
mailing list