From 29d3c0d44baa79cd21a6f91a9e75491930e64d5c Mon Sep 17 00:00:00 2001 From: mdumandag Date: Wed, 4 Nov 2020 15:09:50 +0300 Subject: [PATCH 1/2] Comment out logging on sending each client message It is not really useful for the end user to see the each message that clients send. It might be useful for us on some occasions, so I left it as a commented line. Commenting it resulted in approx. %1-2 throughput increase. --- hazelcast/invocation.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/hazelcast/invocation.py b/hazelcast/invocation.py index 436a412662..68e446b15e 100644 --- a/hazelcast/invocation.py +++ b/hazelcast/invocation.py @@ -206,7 +206,7 @@ def _send(self, invocation, connection): if invocation.event_handler: self._listener_service.add_event_handler(correlation_id, invocation.event_handler) - _logger.debug("Sending %s to %s", message, connection) + # _logger.debug("Sending %s to %s", message, connection) if not connection.send_message(message): if invocation.event_handler: From cd62a80ddff90edbc6976115505749c21b926ca0 Mon Sep 17 00:00:00 2001 From: mdumandag Date: Wed, 18 Nov 2020 14:46:28 +0300 Subject: [PATCH 2/2] remove the unnecessary logging --- hazelcast/invocation.py | 2 -- 1 file changed, 2 deletions(-) diff --git a/hazelcast/invocation.py b/hazelcast/invocation.py index 68e446b15e..198be81a45 100644 --- a/hazelcast/invocation.py +++ b/hazelcast/invocation.py @@ -206,8 +206,6 @@ def _send(self, invocation, connection): if invocation.event_handler: self._listener_service.add_event_handler(correlation_id, invocation.event_handler) - # _logger.debug("Sending %s to %s", message, connection) - if not connection.send_message(message): if invocation.event_handler: self._listener_service.remove_event_handler(correlation_id)