HaikuDepot: New Mechanic for Package Data Download

Operating Systems / Haiku - Andrew Lindesay [lindesay.co.nz] - 11 November 2017 22:49 EST

The application was previously making a number of different requests to the application server in order to pull-down meta-data (ratings, localization etc...) for packages. This will now happen in one request per repo. The data is also cached locally and freshness of the data is checked back with the server before new data is pulled down.

c23b641cf1 HaikuDepot: New Mechanic for Package Data Download
src/apps/haikudepot/Jamfile | 17 +-
src/apps/haikudepot/model/LocalIconStore.cpp | 5 +
src/apps/haikudepot/model/Model.cpp | 462 +------
src/apps/haikudepot/model/Model.h | 15 +-
src/apps/haikudepot/model/PackageInfo.cpp | 5 +-
.../haikudepot/server/PkgDataUpdateProcess.cpp | 275 ++++
src/apps/haikudepot/server/PkgDataUpdateProcess.h | 51 +
.../server/RepositoryDataUpdateProcess.cpp | 8 +-
.../server/RepositoryDataUpdateProcess.h | 2 +-
.../server/dumpexportpkg/DumpExportPkg.cpp | 345 +++++
.../server/dumpexportpkg/DumpExportPkg.h | 79 ++
.../server/dumpexportpkg/DumpExportPkgCategory.cpp | 52 +
.../server/dumpexportpkg/DumpExportPkgCategory.h | 28 +
.../dumpexportpkg/DumpExportPkgJsonListener.cpp | 1318 ++++++++++++++++++++
.../dumpexportpkg/DumpExportPkgJsonListener.h | 89 ++
.../dumpexportpkg/DumpExportPkgScreenshot.cpp | 204 +++
.../server/dumpexportpkg/DumpExportPkgScreenshot.h | 56 +
.../server/dumpexportpkg/DumpExportPkgVersion.cpp | 380 ++++++
.../server/dumpexportpkg/DumpExportPkgVersion.h | 84 ++
.../dumpexportrepository/DumpExportRepository.cpp | 42 +-
.../dumpexportrepository/DumpExportRepository.h | 6 +-
.../DumpExportRepositoryJsonListener.cpp | 20 +-
.../DumpExportRepositoryJsonListener.h | 2 +-
.../DumpExportRepositorySource.cpp | 22 +-
.../DumpExportRepositorySource.h | 4 +-
25 files changed, 3134 insertions(+), 437 deletions(-)

Upstream: cgit.haiku-os.org


  • Share