D5639: Internal cache for provider data on initialisation
Dan Leinir Turthra Jensen
noreply at phabricator.kde.org
Fri Apr 28 13:26:13 UTC 2017
leinir created this revision.
Restricted Application added a project: Frameworks.
Restricted Application added a subscriber: Frameworks.
REVISION SUMMARY
This is a two layer approach to creating less network traffic when initialising a KNSCore::Engine:
- Firstly, cache the xml documents themselves
- Secondly, share XML fetch jobs when many are created at the same time for the same URL
The result of this patch in a single fetch per provider url per application launch, and in connection with https://phabricator.kde.org/D5638 we will fetch the data from the network only once, until the cache is invalidated, all in all resulting in much less traffic and less hammering of the servers.
CCBUG: 379193
TEST PLAN
Using Discover, this results in much less network traffic during startup and engine initialisations.
REPOSITORY
R304 KNewStuff
REVISION DETAIL
https://phabricator.kde.org/D5639
AFFECTED FILES
src/core/engine.cpp
To: leinir, whiting, apol
Cc: #frameworks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-frameworks-devel/attachments/20170428/986793dc/attachment.html>
More information about the Kde-frameworks-devel
mailing list