mirror of
https://github.com/9001/copyparty.git
synced 2025-08-17 17:12:13 -06:00
perf
This commit is contained in:
parent
efded35c2e
commit
1c0071d9ce
|
@ -967,6 +967,9 @@ class Up2k(object):
|
||||||
warks = [str(x[0]) for x in zq]
|
warks = [str(x[0]) for x in zq]
|
||||||
jobs = []
|
jobs = []
|
||||||
for w in warks:
|
for w in warks:
|
||||||
|
if w in in_progress:
|
||||||
|
continue
|
||||||
|
|
||||||
q = "select rd, fn from up where substr(w,1,16)=? limit 1"
|
q = "select rd, fn from up where substr(w,1,16)=? limit 1"
|
||||||
rd, fn = cur.execute(q, (w,)).fetchone()
|
rd, fn = cur.execute(q, (w,)).fetchone()
|
||||||
rd, fn = s3dec(rd, fn)
|
rd, fn = s3dec(rd, fn)
|
||||||
|
@ -982,9 +985,6 @@ class Up2k(object):
|
||||||
n_left -= 1
|
n_left -= 1
|
||||||
continue
|
continue
|
||||||
|
|
||||||
if w in in_progress:
|
|
||||||
continue
|
|
||||||
|
|
||||||
jobs.append(Mpqe(parsers, set(), w, abspath))
|
jobs.append(Mpqe(parsers, set(), w, abspath))
|
||||||
in_progress[w] = True
|
in_progress[w] = True
|
||||||
|
|
||||||
|
|
Loading…
Reference in a new issue