ClassDB: Use AHashMap for property_setget and constant/signal_map

This commit is contained in:
DeeJayLSP 2025-10-28 13:47:17 -03:00
parent c0c1c68562
commit a149280cea
3 changed files with 6 additions and 5 deletions

View file

@ -38,6 +38,7 @@
// Makes callable_mp readily available in all classes connecting signals.
// Needs to come after method_bind and object have been included.
#include "core/object/callable_method_pointer.h"
#include "core/templates/a_hash_map.h"
#include "core/templates/hash_set.h"
#include <type_traits>
@ -127,14 +128,14 @@ public:
HashMap<StringName, MethodBind *> method_map;
HashMap<StringName, LocalVector<MethodBind *>> method_map_compatibility;
HashMap<StringName, int64_t> constant_map;
AHashMap<StringName, int64_t> constant_map;
struct EnumInfo {
List<StringName> constants;
bool is_bitfield = false;
};
HashMap<StringName, EnumInfo> enum_map;
HashMap<StringName, MethodInfo> signal_map;
AHashMap<StringName, MethodInfo> signal_map;
List<PropertyInfo> property_list;
HashMap<StringName, PropertyInfo> property_map;
@ -152,7 +153,7 @@ public:
List<StringName> dependency_list;
#endif
HashMap<StringName, PropertySetGet> property_setget;
AHashMap<StringName, PropertySetGet> property_setget;
HashMap<StringName, Vector<uint32_t>> virtual_methods_compat;
StringName inherits;