diff options
author | Sebastian Thiel <byronimo@gmail.com> | 2010-06-07 13:05:35 +0200 |
---|---|---|
committer | Sebastian Thiel <byronimo@gmail.com> | 2010-06-07 13:05:35 +0200 |
commit | 8c3c271b0d6b5f56b86e3f177caf3e916b509b52 (patch) | |
tree | 1a8341bb622d8ae18c6eb5061f5845619502e648 /lib/git/async/thread.py | |
parent | 619662a9138fd78df02c52cae6dc89db1d70a0e5 (diff) | |
download | gitpython-8c3c271b0d6b5f56b86e3f177caf3e916b509b52.tar.gz |
Added task order cache, and a lock to prevent us walking the graph while changing tasks
Now processing more items to test performance, in dual-threaded mode as well, and its rather bad, have to figure out the reason for this, probably gil, but queues could help
Diffstat (limited to 'lib/git/async/thread.py')
-rw-r--r-- | lib/git/async/thread.py | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/lib/git/async/thread.py b/lib/git/async/thread.py index 2ed002e9..f875f094 100644 --- a/lib/git/async/thread.py +++ b/lib/git/async/thread.py @@ -141,7 +141,8 @@ class WorkerThread(TerminatableThread): # needing exactly one function, and one arg assert len(tasktuple) == 2, "Need tuple of function, arg - it could be more flexible, but its reduced to what we need" routine, arg = tasktuple - + # DEBUG + # print "%s: picked up: %s(%s)" % (self.name, routine, arg) try: rval = None if inspect.ismethod(routine): |