From 7549e0c5ae36be739f0e0a38e87eb85428808e89 Mon Sep 17 00:00:00 2001 From: Jacques Lucke Date: Sat, 17 Sep 2022 12:08:43 +0200 Subject: 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. --- source/blender/editors/space_node/node_draw.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'source/blender/editors/space_node/node_draw.cc') diff --git a/source/blender/editors/space_node/node_draw.cc b/source/blender/editors/space_node/node_draw.cc index 3a8e5d0aed6..937db9951b4 100644 --- a/source/blender/editors/space_node/node_draw.cc +++ b/source/blender/editors/space_node/node_draw.cc @@ -1770,7 +1770,7 @@ struct NodeExtraInfoRow { }; struct NamedAttributeTooltipArg { - Map usage_by_attribute; + Map usage_by_attribute; }; static char *named_attribute_tooltip(bContext *UNUSED(C), void *argN, const char *UNUSED(tip)) @@ -1824,7 +1824,7 @@ static char *named_attribute_tooltip(bContext *UNUSED(C), void *argN, const char } static NodeExtraInfoRow row_from_used_named_attribute( - const Map &usage_by_attribute_name) + const Map &usage_by_attribute_name) { const int attributes_num = usage_by_attribute_name.size(); -- cgit v1.2.3