Add caching to Config::Info
The goal of this change is to make Config::Get(const Info<T>&) fast so that we can use it in hot paths.
This commit is contained in:
1 parent
633ab2dd7c
commit
d8744e6db8
4 files changed
+110
-14
No files matched your search
@@ -86,7 +86,7 @@ template <typename T>
|
||||
static void Set(jint layer, const Config::Location& location, T value)
|
||||
{
|
||||
GetLayer(layer, location)->Set(location, value);
|
||||
Config::InvokeConfigChangedCallbacks();
|
||||
Config::OnConfigChanged();
|
||||
}
|
||||
|
||||
#ifdef __cplusplus
|
||||
|
||||
Reference in new issue
Block a user