diff options
author | Sebastian Thiel <byronimo@gmail.com> | 2010-06-07 23:38:08 +0200 |
---|---|---|
committer | Sebastian Thiel <byronimo@gmail.com> | 2010-06-07 23:38:08 +0200 |
commit | e825f8b69760e269218b1bf1991018baf3c16b04 (patch) | |
tree | 9af8bbd4ad665389d52419b6ac386c64b7ceb09f /lib/git | |
parent | def0f73989047c4ddf9b11da05ad2c9c8e387331 (diff) | |
download | gitpython-e825f8b69760e269218b1bf1991018baf3c16b04.tar.gz |
Channel now uses the AsyncQueue, boosting performance by factor 4, its a start
Diffstat (limited to 'lib/git')
-rw-r--r-- | lib/git/async/channel.py | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/lib/git/async/channel.py b/lib/git/async/channel.py index 2add9478..2d5ab79c 100644 --- a/lib/git/async/channel.py +++ b/lib/git/async/channel.py @@ -1,10 +1,10 @@ """Contains a queue based channel implementation""" from Queue import ( - Queue, Empty, Full ) +from util import AsyncQueue from time import time import sys @@ -43,7 +43,7 @@ class WChannel(Channel): """initialize this instance, able to hold max_items at once Write calls will block if the channel is full, until someone reads from it""" self._closed = False - self._queue = Queue(max_items) + self._queue = AsyncQueue(max_items) #{ Interface |