[UDisksDeviceBackend] Port from QDom to QXmlStreamReader
AbandonedPublic

Authored by broulik on Feb 19 2018, 2:34 PM.

Details

Reviewers
davidedmundson
apol
Group Reviewers
Frameworks
Summary

The Qt Xml module is not actively maintained anymore and docs suggest to use QXmlStreamReader.
This saves 3 ms startup time for Dolphin.

Test Plan

My devices still show up. In the original code is an isNull check for the element, is this something we should still have?

Diff Detail

Repository
R245 Solid
Lint
Lint Skipped
Unit
Unit Tests Skipped
broulik created this revision.Feb 19 2018, 2:34 PM
Restricted Application added a project: Frameworks. · View Herald TranscriptFeb 19 2018, 2:34 PM
broulik requested review of this revision.Feb 19 2018, 2:34 PM
apol accepted this revision.Feb 19 2018, 2:38 PM
This revision is now accepted and ready to land.Feb 19 2018, 2:38 PM

These kinds of changes to Solid are going to need some *ahem* solid testing (I just kill myself sometimes) to avoid regressions, like the one we had in https://bugs.kde.org/show_bug.cgi?id=389479

IMHO if we're fixing it, I'd go all-in and port from introspect to GetManagedObjects on the object manager.

You get rid of all XML parsing and you'd get the initial properties in the same call (instead of an additional one per iface)
You could even do all devices in one call with that.

broulik planned changes to this revision.Feb 19 2018, 3:15 PM

Good idea

broulik abandoned this revision.Apr 9 2019, 6:47 PM

Superseded by D10657

Restricted Application added a subscriber: kde-frameworks-devel. · View Herald TranscriptApr 9 2019, 6:47 PM
bruns added a subscriber: bruns.Apr 9 2019, 7:34 PM

Superseded by D10657

Superseded by itself? D19677?