mirror of
https://github.com/9001/copyparty.git
synced 2026-03-21 23:53:00 +10:00
perf
This commit is contained in:
@@ -967,6 +967,9 @@ class Up2k(object):
|
||||
warks = [str(x[0]) for x in zq]
|
||||
jobs = []
|
||||
for w in warks:
|
||||
if w in in_progress:
|
||||
continue
|
||||
|
||||
q = "select rd, fn from up where substr(w,1,16)=? limit 1"
|
||||
rd, fn = cur.execute(q, (w,)).fetchone()
|
||||
rd, fn = s3dec(rd, fn)
|
||||
@@ -982,9 +985,6 @@ class Up2k(object):
|
||||
n_left -= 1
|
||||
continue
|
||||
|
||||
if w in in_progress:
|
||||
continue
|
||||
|
||||
jobs.append(Mpqe(parsers, set(), w, abspath))
|
||||
in_progress[w] = True
|
||||
|
||||
|
||||
Reference in New Issue
Block a user