From de85122a6e33a22f565fda60d5a88b81faf9820b Mon Sep 17 00:00:00 2001 From: Craig Long Date: Fri, 1 Jan 2021 14:34:24 -0500 Subject: [PATCH] Set list capacity directly vs resizing dynamically during initialization --- src/Engine/ProtoCore/Lang/CallSite.cs | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/Engine/ProtoCore/Lang/CallSite.cs b/src/Engine/ProtoCore/Lang/CallSite.cs index d3e59eb2ba2..1385de522e8 100644 --- a/src/Engine/ProtoCore/Lang/CallSite.cs +++ b/src/Engine/ProtoCore/Lang/CallSite.cs @@ -1771,7 +1771,7 @@ private StackValue ExecWithRISlowPath( StackValue[] retSVs = new StackValue[retSize]; SingleRunTraceData retTrace = newTraceData; - retTrace.NestedData = new List(); //this will shadow the SVs as they are created + retTrace.NestedData = new List(retSize); //this will shadow the SVs as they are created //Populate out the size of the list with default values //@TODO:Luke perf optimisation here