bjustin-ibm commented on a change in pull request #178: convert from threading 
to multiprocessing
URL: 
https://github.com/apache/incubator-openwhisk-package-kafka/pull/178#discussion_r120658105
 
 

 ##########
 File path: provider/consumer.py
 ##########
 @@ -213,6 +205,8 @@ def run(self):
                 if len(messages) > 0:
                     self.__fireTrigger(messages)
 
+                time.sleep(0.1)
 
 Review comment:
   I believe this may significantly reduce the CPU usage of an idle Consumer. 
Without a nice little pause, this loop is always running the CPU as hard as 
possible.
 
----------------------------------------------------------------
This is an automated message from the Apache Git Service.
To respond to the message, please log on GitHub and use the
URL above to go to the specific comment.
 
For queries about this service, please contact Infrastructure at:
[email protected]


With regards,
Apache Git Services

Reply via email to