summaryrefslogtreecommitdiff
path: root/lib/git/async/util.py
diff options
context:
space:
mode:
authorSebastian Thiel <byronimo@gmail.com>2010-06-07 23:20:37 +0200
committerSebastian Thiel <byronimo@gmail.com>2010-06-07 23:28:01 +0200
commitdef0f73989047c4ddf9b11da05ad2c9c8e387331 (patch)
tree0b5afab413885df75a31d36d430a5a5323aaeaa9 /lib/git/async/util.py
parentbe06e87433685b5ea9cfcc131ab89c56cf8292f2 (diff)
downloadgitpython-def0f73989047c4ddf9b11da05ad2c9c8e387331.tar.gz
introduced a new counter keeping track of the scheduled tasks - this prevent unnecessary tasks to be scheduled as we keep track of how many items will be produced for the task at hand. This introduces additional locking, but performns well in multithreaded mode. Performance of the master queue is still a huge issue, its currently the limiting factor, as bypassing the master queue in serial moode gives 15x performance, wich is what I would need
Diffstat (limited to 'lib/git/async/util.py')
-rw-r--r--lib/git/async/util.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/lib/git/async/util.py b/lib/git/async/util.py
index 85d44694..6bd8a4e8 100644
--- a/lib/git/async/util.py
+++ b/lib/git/async/util.py
@@ -59,7 +59,7 @@ class SyncQueue(deque):
class HSCondition(_Condition):
"""An attempt to make conditions less blocking, which gains performance
in return by sleeping less"""
- delay = 0.00005 # reduces wait times, but increases overhead
+ delay = 0.0001 # reduces wait times, but increases overhead
def wait(self, timeout=None):
waiter = Lock()