Make :mono use basic loop

Makes profiling easier
master
pictuga 2015-04-07 18:16:08 +08:00
parent 2f86a2a44b
commit 7a3b257328
1 changed files with 6 additions and 2 deletions

View File

@ -417,9 +417,13 @@ def Gather(rss, url, options):
t.start() t.start()
for i, item in enumerate(list(rss.items)): for i, item in enumerate(list(rss.items)):
queue.put([i, item]) if threads == 1:
worker(*[i, item])
else:
queue.put([i, item])
queue.join() if threads != 1:
queue.join()
if options.ad: if options.ad:
new = rss.items.append() new = rss.items.append()