use collections.deque for incoming queue

git-svn-id: https://linkchecker.svn.sourceforge.net/svnroot/linkchecker/trunk/linkchecker@2518 e7d03fd6-7b0d-0410-9947-9c21f3af8025
This commit is contained in:
calvin 2005-04-13 21:05:52 +00:00
parent ee933ce8b9
commit 7925d5dd56
2 changed files with 6 additions and 1 deletions

View file

@ -1,5 +1,9 @@
2.9 "" (released x.x.xxxx)
* Use optimized collections.deque object for incoming URL list
Type: optimization
Changed: linkcheck/checker/cache.py
2.8 "Robots" (released 8.4.2005)
* Correct AttributeError in blacklist logger.

View file

@ -19,6 +19,7 @@ Store cached data during checking.
"""
import Cookie
import collections
import linkcheck
import linkcheck.log
@ -66,7 +67,7 @@ class Cache (linkcheck.lock.AssertLock):
# urls that are being checked
self.in_progress = {}
# to-be-checked urls
self.incoming = []
self.incoming = collections.deque()
# downloaded robots.txt files
self.robots_txt = {}
# stored cookies