diff options
author | Jacques Lucke <jacques@blender.org> | 2022-09-17 13:08:43 +0300 |
---|---|---|
committer | Jacques Lucke <jacques@blender.org> | 2022-09-17 13:08:57 +0300 |
commit | 7549e0c5ae36be739f0e0a38e87eb85428808e89 (patch) | |
tree | d931c76b0001cfc5bea7ac3f29287d91713ef5ac /source/blender/modifiers/intern | |
parent | 1810b1e4c88191e3578518e12f9f3d318e08dc60 (diff) |
Geometry Nodes: use stringref instead of string in logger
This reduces logging overhead. The performance difference is only
significant when there are many fast nodes. In my test file with many
math nodes, the performance improved from 720ms to 630ms.
Diffstat (limited to 'source/blender/modifiers/intern')
-rw-r--r-- | source/blender/modifiers/intern/MOD_nodes.cc | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/source/blender/modifiers/intern/MOD_nodes.cc b/source/blender/modifiers/intern/MOD_nodes.cc index d4384c988e3..ff8f851c1e8 100644 --- a/source/blender/modifiers/intern/MOD_nodes.cc +++ b/source/blender/modifiers/intern/MOD_nodes.cc @@ -1760,7 +1760,7 @@ static void internal_dependencies_panel_draw(const bContext *UNUSED(C), Panel *p } tree_log->ensure_used_named_attributes(); - const Map<std::string, NamedAttributeUsage> &usage_by_attribute = + const Map<StringRefNull, NamedAttributeUsage> &usage_by_attribute = tree_log->used_named_attributes; if (usage_by_attribute.is_empty()) { |