python-for-android icon indicating copy to clipboard operation
python-for-android copied to clipboard

[improvement] make prerequisites check parallel + cache results to speed things up.

Open cederom opened this issue 2 years ago • 0 comments

  • Prerequisites check (macOS) happens several times during APK/AAB build (i.e. at different stages of buildozer android debug deploy run logcat) and not only once.
  • This is not a problem during first build that is long anyways and the dependencies are crucial, but on the application rebuild these checks take some numerable percent of build time and this can be improved.
  • The idea is to have list of prerequisites, launch a checks in parallel, return a result, and then based on a result install possible missing dependencies one after another This should speed reoccurring checks several times. Most of the times no missing packages will be reported anyways.
  • In addition some unique per build cache can be used to store prerequisites check results, that will even more speed things up because no unnecessary checks will reoccur.

cederom avatar Oct 15 '23 00:10 cederom