BewareMyPower commented on code in PR #24465:
URL: https://github.com/apache/pulsar/pull/24465#discussion_r2168035091


##########
pulsar-proxy/src/main/java/org/apache/pulsar/proxy/server/LookupProxyHandler.java:
##########
@@ -85,6 +87,9 @@ public class LookupProxyHandler {
             .create().register();
     private final Semaphore lookupRequestSemaphore;
 
+    // Maps the topic name from the request to the full topic name
+    private final Map<String, String> topicNameCache = new HashMap<>();

Review Comment:
   200k keys:
   
   ```
   TopicNameBenchmark.testConvert        thrpt       14.706          ops/s
   TopicNameBenchmark.testReadFromCache  thrpt       16.639          ops/s
   ```



-- 
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.

To unsubscribe, e-mail: commits-unsubscr...@pulsar.apache.org

For queries about this service, please contact Infrastructure at:
us...@infra.apache.org

Reply via email to