You are viewing a plain text version of this content. The canonical link for it is here.
Posted to jira@kafka.apache.org by "Chia-Ping Tsai (Jira)" <ji...@apache.org> on 2024/06/18 14:25:00 UTC

[jira] [Created] (KAFKA-16989) Use StringBuilder instead of string concatenation

Chia-Ping Tsai created KAFKA-16989:
--------------------------------------

             Summary: Use StringBuilder instead of string concatenation
                 Key: KAFKA-16989
                 URL: https://issues.apache.org/jira/browse/KAFKA-16989
             Project: Kafka
          Issue Type: Improvement
            Reporter: Chia-Ping Tsai
            Assignee: Chia-Ping Tsai


https://github.com/apache/kafka/blob/2fd00ce53678509c9f2cfedb428e37a871e3d530/metadata/src/main/java/org/apache/kafka/image/node/ClientQuotasImageNode.java#L130

The string concatenation will create many new strings and we can reduce the cost by using StringBuilder



--
This message was sent by Atlassian Jira
(v8.20.10#820010)