[ https://issues.apache.org/jira/browse/KAFKA-6640?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel ]
Dong Lin updated KAFKA-6640: ---------------------------- Description: Currently in KafkaAdminClient.describeTopics(), for each topic in the request, an complete map of cluster and errors will be constructed for every topic and partition. This unnecessarily increases the complexity of describeTopics() to O(n^2). We can improve its efficiency to O(n) (was: Currently in KafkaAdminClient.describeTopics(), for each topic in the request, an complete map of cluster and errors will be constructed for every topic and partition. This unnecessarily increase the complexity of describeTopics() to O(n^2).) > Improve efficiency of KafkaAdminClient.describeTopics() > ------------------------------------------------------- > > Key: KAFKA-6640 > URL: https://issues.apache.org/jira/browse/KAFKA-6640 > Project: Kafka > Issue Type: Improvement > Reporter: Dong Lin > Assignee: Dong Lin > Priority: Major > > Currently in KafkaAdminClient.describeTopics(), for each topic in the > request, an complete map of cluster and errors will be constructed for every > topic and partition. This unnecessarily increases the complexity of > describeTopics() to O(n^2). We can improve its efficiency to O(n) -- This message was sent by Atlassian JIRA (v7.6.3#76005)