From cade3eb302fcf9144cd538fbd1e506c33dbe3b48 Mon Sep 17 00:00:00 2001 From: Stefan BrĂ¼ns Date: Mon, 28 Dec 2020 03:23:23 +0100 Subject: [BalooRolesProvider] Use Property IDs instead of string matching Instantiating KFileMetaDataInfo for each file and property, even when the role is not used, is somewhat expensive and unnecessary. Use the numeric Property ID to map it to a role, and only instantiate the used PropertyInfo's. Remove the properties provided by KFM::UserMetaData from the map, as these will newer match. --- src/kitemviews/private/kbaloorolesprovider.h | 1 - 1 file changed, 1 deletion(-) (limited to 'src/kitemviews/private/kbaloorolesprovider.h') diff --git a/src/kitemviews/private/kbaloorolesprovider.h b/src/kitemviews/private/kbaloorolesprovider.h index 6ac0129ec..97ed58f2b 100644 --- a/src/kitemviews/private/kbaloorolesprovider.h +++ b/src/kitemviews/private/kbaloorolesprovider.h @@ -47,7 +47,6 @@ protected: private: QSet m_roles; - QHash m_roleForProperty; friend struct KBalooRolesProviderSingleton; }; -- cgit v1.3.1