D9028: [UDisks DeviceBackend] Slightly optimize

2018-04-24 Thread Stefan BrĂ¼ns
bruns added inline comments. INLINE COMMENTS > davidedmundson wrote in udisksdevicebackend.cpp:67 > Never trust existing code. > > You're not going to get to process DBus events until we hit the event queue > anyway. Its also clearly racy. You **have to** connect to the signals before

D9028: [UDisks DeviceBackend] Slightly optimize

2018-04-24 Thread Kai Uwe Broulik
broulik abandoned this revision. broulik added a comment. The important stuff (double/triple lookup) was already committed elsewhere and the rest is just minor coding style stuff REPOSITORY R245 Solid REVISION DETAIL https://phabricator.kde.org/D9028 To: broulik, #frameworks,

D9028: [UDisks DeviceBackend] Slightly optimize

2017-12-01 Thread David Edmundson
davidedmundson added inline comments. INLINE COMMENTS > broulik wrote in udisksdevicebackend.cpp:67 > Similar code in different place had a comment > > // Delay connecting to DBus signals to avoid the related time penalty > // in hot paths such as predicate matching Never trust existing

D9028: [UDisks DeviceBackend] Slightly optimize

2017-12-01 Thread Kai Uwe Broulik
broulik added inline comments. INLINE COMMENTS > apol wrote in udisksdevicebackend.cpp:67 > What do we gain by delaying dbus connection? Similar code in different place had a comment // Delay connecting to DBus signals to avoid the related time penalty // in hot paths such as predicate

D9028: [UDisks DeviceBackend] Slightly optimize

2017-11-28 Thread Aleix Pol Gonzalez
apol added inline comments. INLINE COMMENTS > udisksdevicebackend.cpp:67 > if (m_device->isValid()) { > -QDBusConnection::systemBus().connect(UD2_DBUS_SERVICE, m_udi, > DBUS_INTERFACE_PROPS, "PropertiesChanged", this, > - >

D9028: [UDisks DeviceBackend] Slightly optimize

2017-11-28 Thread Kai Uwe Broulik
broulik created this revision. broulik added reviewers: Frameworks, davidedmundson. Restricted Application added a project: Frameworks. REVISION SUMMARY - Avoid double lookup (contains+value) - Just `delete take()` instead of contains+value+remove+delete - Delay connecting to DBus change