<table><tr><td style="">davidedmundson created this revision.<br />Restricted Application added a project: Frameworks.<br />Restricted Application added a subscriber: Frameworks.
</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/D8495" rel="noreferrer">View Revision</a></tr></table><br /><div><strong>REVISION SUMMARY</strong><div><p>The current code fetches all devices, filters isOfInterest (which is at<br />
least one device property lookup) then filters by type.</p>

<p>If we're searching for a specific type, we can do it much faster if we<br />
fetch devices by type from udev directly, and then filter the irrelevant<br />
ones.</p>

<p>KIO likes to search for media players. According to hotspot this is a<br />
really sore point in applications.</p>

<p>The filter logic is copied from UdevDevice, but applied in the initial<br />
fetch. ParentUDI was hardcoded in UdevDevice so is here too.</p></div></div><br /><div><strong>REPOSITORY</strong><div><div>R245 Solid</div></div></div><br /><div><strong>REVISION DETAIL</strong><div><a href="https://phabricator.kde.org/D8495" rel="noreferrer">https://phabricator.kde.org/D8495</a></div></div><br /><div><strong>AFFECTED FILES</strong><div><div>src/solid/devices/backends/udev/udevmanager.cpp</div></div></div><br /><div><strong>To: </strong>davidedmundson<br /><strong>Cc: </strong>Frameworks<br /></div>