mirror of
https://github.com/OPCFoundation/UA-.NETStandard.git
synced 2026-10-28 14:09:56 +08:00
Use HashSet for validation cache in MasterNodeManager (#1907)
To improve Contains method performance I changed List type for HashSet.
This commit is contained in:
@@ -1198,7 +1198,7 @@ namespace Opc.Ua.Server
|
||||
private void PrepareValidationCache<T>(List<T> nodesCollection,
|
||||
out Dictionary<NodeId, List<object>> uniqueNodesServiceAttributes)
|
||||
{
|
||||
List<NodeId> uniqueNodes = new List<NodeId>();
|
||||
HashSet<NodeId> uniqueNodes = new HashSet<NodeId>();
|
||||
for (int i = 0; i < nodesCollection.Count; i++)
|
||||
{
|
||||
Type listType = typeof(T);
|
||||
|
||||
Reference in New Issue
Block a user