D8494: Reduce QString creation in Udev checking
David Edmundson
noreply at phabricator.kde.org
Thu Oct 26 11:54:38 UTC 2017
davidedmundson created this revision.
Restricted Application added a project: Frameworks.
Restricted Application added a subscriber: Frameworks.
REVISION SUMMARY
UdevDevice creates a new QString in every wrapper.
For the most part this makes sense, but we may as well cache a property
if we're fetching it multiple times.
(we could even reduce it further and just use QByteArrays pointing to the
underlying char*s without copying)
REPOSITORY
R245 Solid
REVISION DETAIL
https://phabricator.kde.org/D8494
AFFECTED FILES
src/solid/devices/backends/udev/udevmanager.cpp
To: davidedmundson
Cc: #frameworks
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mail.kde.org/pipermail/kde-frameworks-devel/attachments/20171026/e652ae27/attachment.html>
More information about the Kde-frameworks-devel
mailing list