<table><tr><td style="">fvogt created this revision.<br />Restricted Application added a project: Plasma.
</td><a style="text-decoration: none; padding: 4px 8px; margin: 0 8px 8px; float: right; color: #464C5C; font-weight: bold; border-radius: 3px; background-color: #F7F7F9; background-image: linear-gradient(to bottom,#fff,#f1f0f1); display: inline-block; border: 1px solid rgba(71,87,120,.2);" href="https://phabricator.kde.org/D7255" rel="noreferrer">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>The directory containing the main application (read through argv[0]) is<br />
by default added to the list of paths containing libraries.<br />
This causes various methods to iterate through all entries of the plasmashell<br />
install location, usually /usr/bin.<br />
By explicitly removing the path, those unnecessary lookups can be avoided,<br />
resulting in around 100ms quicker startup on a system with 4000 entries in<br />
/usr/bin.</p></div></div><br /><div><strong>TEST PLAN</strong><div><p>Ran plasmashell with and without this fix, no changes except for a slightly<br />
quicker startup and much less strace noise.</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R120 Plasma Workspace</div></div></div><br /><div><strong>BRANCH</strong><div><div>libfix</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D7255" rel="noreferrer">https://phabricator.kde.org/D7255</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>shell/main.cpp</div></div></div><br /><div><strong>To: </strong>fvogt, Plasma<br /><strong>Cc: </strong>plasma-devel, ZrenBot, progwolff, lesliezhai, ali-mohamed, jensreuterberg, abetts, sebas, apol, mart, lukas<br /></div>