D7255: Remove application directory from QCoreApplication::libraryPaths()
Fabian Vogt
noreply at phabricator.kde.org
Fri Aug 11 18:11:43 UTC 2017
fvogt created this revision.
Restricted Application added a project: Plasma.
REVISION SUMMARY
The directory containing the main application (read through argv[0]) is
by default added to the list of paths containing libraries.
This causes various methods to iterate through all entries of the plasmashell
install location, usually /usr/bin.
By explicitly removing the path, those unnecessary lookups can be avoided,
resulting in around 100ms quicker startup on a system with 4000 entries in
/usr/bin.
TEST PLAN
Ran plasmashell with and without this fix, no changes except for a slightly
quicker startup and much less strace noise.
REPOSITORY
R120 Plasma Workspace
BRANCH
libfix
REVISION DETAIL
https://phabricator.kde.org/D7255
AFFECTED FILES
shell/main.cpp
To: fvogt, #plasma
Cc: plasma-devel, ZrenBot, progwolff, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas, apol, mart, lukas
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/plasma-devel/attachments/20170811/73ae5c33/attachment.html>
More information about the Plasma-devel
mailing list