From 45af29da8095af16729955117a165d23e77cd740 Mon Sep 17 00:00:00 2001 From: reduz Date: Thu, 19 May 2022 17:00:06 +0200 Subject: Add a new HashSet template * Intended to replace RBSet in most cases. * Optimized for iteration speed --- scene/debugger/scene_debugger.cpp | 65 ++++++++++++++++++++------------------- scene/debugger/scene_debugger.h | 2 +- 2 files changed, 35 insertions(+), 32 deletions(-) (limited to 'scene/debugger') diff --git a/scene/debugger/scene_debugger.cpp b/scene/debugger/scene_debugger.cpp index dfad91ecd5..a54e728c1b 100644 --- a/scene/debugger/scene_debugger.cpp +++ b/scene/debugger/scene_debugger.cpp @@ -345,8 +345,8 @@ void SceneDebugger::remove_from_cache(const String &p_filename, Node *p_node) { return; } - HashMap> &edit_cache = debugger->live_scene_edit_cache; - HashMap>::Iterator E = edit_cache.find(p_filename); + HashMap> &edit_cache = debugger->live_scene_edit_cache; + HashMap>::Iterator E = edit_cache.find(p_filename); if (E) { E->value.erase(p_node); if (E->value.size() == 0) { @@ -408,12 +408,12 @@ SceneDebuggerObject::SceneDebuggerObject(ObjectID p_id) { } void SceneDebuggerObject::_parse_script_properties(Script *p_script, ScriptInstance *p_instance) { - typedef HashMap> ScriptMemberMap; + typedef HashMap> ScriptMemberMap; typedef HashMap> ScriptConstantsMap; ScriptMemberMap members; if (p_instance) { - members[p_script] = RBSet(); + members[p_script] = HashSet(); p_script->get_members(&(members[p_script])); } @@ -424,7 +424,7 @@ void SceneDebuggerObject::_parse_script_properties(Script *p_script, ScriptInsta Ref