From bd4447f703c080b109eac0793d9f2cdba4a5ac69 Mon Sep 17 00:00:00 2001 From: Marcin Kuzminski Date: Mon, 4 Dec 2017 12:55:05 +0100 Subject: [PATCH] hooks: decrease pool interval to 10ms. For SVN operations and lots of requests we can save tons of time this way. It's a good balance value. --- rhodecode/lib/hooks_daemon.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/rhodecode/lib/hooks_daemon.py b/rhodecode/lib/hooks_daemon.py index 50b3f72c..72407760 100644 --- a/rhodecode/lib/hooks_daemon.py +++ b/rhodecode/lib/hooks_daemon.py @@ -133,7 +133,7 @@ class HttpHooksCallbackDaemon(ThreadedHookCallbackDaemon): # From Python docs: Polling reduces our responsiveness to a shutdown # request and wastes cpu at all other times. - POLL_INTERVAL = 0.1 + POLL_INTERVAL = 0.01 def _prepare(self): log.debug("Preparing HTTP callback daemon and registering hook object")