chiark / gitweb /
checkupdates: sort tags by date in one go
authorDaniel Martí <mvdan@mvdan.cc>
Wed, 2 Mar 2016 11:30:40 +0000 (11:30 +0000)
committerDaniel Martí <mvdan@mvdan.cc>
Thu, 10 Mar 2016 11:14:08 +0000 (11:14 +0000)
commit2a73b746034ad237adbfcdedd7ce4285a1382cde
treeda562086793e3a2c4a0caf375d3b7c9938bdd271
parent261cbcd3ee143ddf9df49fe71243811cf54fd001
checkupdates: sort tags by date in one go

This greatly speeds up checkupdates when UCM:Tags is used on git
repositories, especially on ones with lots of tags. The old method ran a
command per tag. The new method runs a single command and doesn't
require any sorting.

Test runs show that `fdroid checkupdates org.adaway` is down from ~13s
to ~10s on my laptop.
fdroidserver/checkupdates.py
fdroidserver/common.py