Improve performance of setPropertyValue function (#3579)

* Cache full property URIs
  * Multithreaded handling

---------

Co-authored-by: Emma Broman <emma.broman@liu.se>
This commit is contained in:
Alexander Bock
2025-04-15 17:43:57 +02:00
committed by GitHub
parent b5dbee2164
commit b554187d76
12 changed files with 169 additions and 89 deletions
@@ -132,6 +132,9 @@ public:
AssetManager& assetManager();
LoadingScreen* loadingScreen();
void invalidatePropertyCache();
const std::vector<properties::Property*>& allProperties() const;
void createUserDirectoriesIfNecessary();
uint64_t ramInUse() const;
@@ -174,6 +177,9 @@ private:
int _nextCallbackHandle = 0;
std::vector<std::pair<CallbackHandle, ModeChangeCallback>> _modeChangeCallbacks;
mutable bool _isAllPropertiesCacheDirty = true;
mutable std::vector<properties::Property*> _allPropertiesCache;
};
/**