[WIP] ensure only one kpackage per applet
AbandonedPublic

Authored by mart on Dec 2 2017, 5:34 PM.

Details

Reviewers
None
Group Reviewers
Plasma
Summary
  • only one kpackage per applet, minimizes the metadata() cache misses (and access to json)
  • make packageurlinterceptor stupid: just replace /ui/ with /code/ on js files for retrocompatibility) should decrease disk access a lot
Test Plan

needs benchmarking and regression testing

Diff Detail

Repository
R242 Plasma Framework (Library)
Branch
phab/minimizekpackage
Lint
No Linters Available
Unit
No Unit Test Coverage
mart created this revision.Dec 2 2017, 5:34 PM
Restricted Application added projects: Plasma, Frameworks. · View Herald TranscriptDec 2 2017, 5:34 PM
Restricted Application added subscribers: Frameworks, plasma-devel. · View Herald Transcript
mart requested review of this revision.Dec 2 2017, 5:34 PM
mart updated this revision to Diff 23300.Dec 2 2017, 6:04 PM
  • Merge branch 'master' into phab/minimizekpackage
  • fix build
apol added a subscriber: apol.Dec 3 2017, 9:55 AM

Otherwise LGTM.

src/plasmaquick/packageurlinterceptor.cpp
99

Move the QRegularExpression into a variable and reuse.

Please push as two separate things.

The applet part looks fine aside from docs.


UrlInterceptor.

IMHO it might be worth a release that continues onwards after the reg exp (so less performance benefits) and prints a warning if we end up in the relativePath code?

src/plasma/applet.h
109

docs

especially as we have N almost identical ones.

src/plasmaquick/packageurlinterceptor.cpp
99

QRegularExpression(QStringLiteral as QRegularExpression is going to construct a QString

100

Does use of the "data" folder go through the URL interceptor

103

I know you uploaded this so I could profile it,
but if we return here we don't want the code below.

mart abandoned this revision.Dec 3 2017, 12:29 PM