From a75f13e7bdf1e3d0ce961ab27f2be744b8148c35 Mon Sep 17 00:00:00 2001 From: Simon Rodriguez Date: Sun, 6 Nov 2022 10:16:26 +0100 Subject: [PATCH] in most cases the data is already set and with this if check we can skip a dictionary lookup --- Scripts/NodePort.cs | 1 + 1 file changed, 1 insertion(+) diff --git a/Scripts/NodePort.cs b/Scripts/NodePort.cs index f8bca99..b8656ef 100644 --- a/Scripts/NodePort.cs +++ b/Scripts/NodePort.cs @@ -47,6 +47,7 @@ namespace XNode { return valueType; } set { + if (valueType == value) return; valueType = value; if (value != null) _typeQualifiedName = NodeDataCache.GetTypeQualifiedName(value); }