
Speed up "Saving Application Details" part of repo update Fixes 506. This does the thing mentioned in 506 (renaming temp table, rather than copying data). In the process, I also identified that the temp tables were missing key indexes which slowed the process down. This fix took the update time from ~100 seconds to ~60 seconds on my Nexus 4. Below are a couple of log cats from before and after the change (this logging is not part of this MR, it was just for diagnosing the problem). *Before change:* ``` AppProvider D Calculating whether apps are compatible, based on whether any of their apks are compatible D Update compatible flags took 20244ms D Calculating suggested versions for all apps which specify an upstream version code. D Update suggested from upstream took 17808ms D Calculating suggested versions for all apps which don't specify an upstream version code. D Update suggested from latest took 129ms AppProvider D Update icon URLs took 7879ms UpdateService I Updating repo(s) complete, took 104 seconds to complete. ``` *After change:* ``` AppProvider D Calculating whether apps are compatible, based on whether any of their apks are compatible D Update compatible flags took 1047ms D Calculating suggested versions for all apps which specify an upstream version code. D Update suggested from upstream took 601ms D Calculating suggested versions for all apps which don't specify an upstream version code. D Update suggested from latest took 136ms D Update icon URLs took 887ms UpdateService I Updating repo(s) complete, took 63 seconds to complete. ``` See merge request !179
F-Droid Client
Client for F-Droid, the Free Software repository system for Android.
Building with Gradle
The only requirements are the Android SDK and Gradle 2.7:
cd F-Droid
gradle assembleRelease
Direct download
You can download the application directly from our site or browse it in the repo.
Contributing
See our Contributing doc for information on how to report issues, translate the app into your language or help with development.
IRC
We are on #fdroid
and #fdroid-dev
on Freenode. We hold weekly dev meetings
on #fdroid-dev
on Tuesdays at 20h UTC, which usually last half an hour.
License
This program is Free Software: You can use, study share and improve it at your will. Specifically you can redistribute and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.
Some icons are made by Picol, Icomoon or Dave Gandy from Flaticon or by Google and are licensed by Creative Commons BY 3.0.
Other icons are from the Material Design Icon set released under an Attribution 4.0 International license.