Commit graph

9 commits

Author SHA1 Message Date
Ivailo Monev
33138d4a49 kdecore: effectively revert 6ae96c3c1d
due to Katie changes (see 7c840afcb12096778ecb1539f7baba3e02ba6f85 in the
Katie repo) reading lines is much faster

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-08-07 17:12:37 +03:00
Ivailo Monev
6ae96c3c1d kdecore: do not block while parsing files in KDeviceDatabase
parsing ~30k lines and filling maps for the entries takes some time and
could block the events of kinfocenter for example which is noticable
because the parsing of files is delayed until a KDeviceDatabase query is
made

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-06-06 16:07:14 +03:00
Ivailo Monev
65957abb2e kdecore: KDeviceDatabase optimization
I didn't benchmark it but I did the same kind of optimization for
KSystemTimeZones (which I did benchmark)

Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2023-06-03 05:47:20 +03:00
Ivailo Monev
a72a3135c6 kdecore: more USB IDs
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-04-30 12:39:40 +03:00
Ivailo Monev
e8f2c262e2 kdecore: extend the upstream PCI and USB databases
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-04-29 18:16:11 +03:00
Ivailo Monev
58242ccd5f kdecore: rename internal KDeviceDatabase struct members to match what data they represent
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-04-29 15:31:38 +03:00
Ivailo Monev
f436acd448 kdecore: pad the IDs even when they start with "0x" from KDeviceDatabase methods
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-04-29 15:07:21 +03:00
Ivailo Monev
eef792f6ff kdecore: KDeviceDatabase rewrite and test for it
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-04-29 14:39:38 +03:00
Ivailo Monev
3028881628 kdecore: new KDeviceDatabase class
Signed-off-by: Ivailo Monev <xakepa10@gmail.com>
2022-04-26 21:47:58 +03:00
Renamed from solid/solid/backends/shared/usbidstables.h (Browse further)