]> arthur.barton.de Git - bup.git/commit
web: don't re-resolve item in listing
authorJohannes Berg <johannes@sipsolutions.net>
Fri, 17 Jul 2020 19:42:16 +0000 (21:42 +0200)
committerRob Browning <rlb@defaultvalue.org>
Sun, 19 Jul 2020 20:13:15 +0000 (15:13 -0500)
commiteadddb9ded212a4d6b9ec3f65532a7e6bb267bef
treeec9468f9bc207b89f8f6693958c930c1b166181d
parent133e5c531e15f6a6662ece13cfabe24b1860670d
web: don't re-resolve item in listing

We already have an item, we just need its metadata. There's no
need to re-resolve it. Somehow, resolving it again is also very
slow for large directories (perhaps re-reading metadata again
and again?), and this significantly speeds up things.

Signed-off-by: Johannes Berg <johannes@sipsolutions.net>
Reviewed-by: Rob Browning <rlb@defaultvalue.org>
Tested-by: Rob Browning <rlb@defaultvalue.org>
lib/cmd/web-cmd.py