broulik created this revision. broulik added reviewers: Frameworks, davidedmundson. Restricted Application added a project: Frameworks. broulik requested review of this revision.
REVISION SUMMARY This does some rough filtering in advance before creating our wrapper items with properties and all. It's quite unlikely for e.g. a CPU core to pose as a media player. TEST PLAN Gives a significant speedup of Dolphin startup for me. Instead of KFilePlacesModel spending 120ms querying for Udev devices it only takes 30ms. My phone still shows up in Dolphin and unplugging and plugging it back in also works. REPOSITORY R245 Solid REVISION DETAIL https://phabricator.kde.org/D11290 AFFECTED FILES src/solid/devices/backends/udev/udevmanager.cpp To: broulik, #frameworks, davidedmundson Cc: michaelh