Skip to content

Commit

Permalink
Set list capacity directly vs resizing dynamically during initialization
Browse files Browse the repository at this point in the history
  • Loading branch information
saintentropy committed Jan 1, 2021
1 parent d66dde2 commit de85122
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion src/Engine/ProtoCore/Lang/CallSite.cs
Original file line number Diff line number Diff line change
Expand Up @@ -1771,7 +1771,7 @@ private StackValue ExecWithRISlowPath(
StackValue[] retSVs = new StackValue[retSize];

SingleRunTraceData retTrace = newTraceData;
retTrace.NestedData = new List<SingleRunTraceData>(); //this will shadow the SVs as they are created
retTrace.NestedData = new List<SingleRunTraceData>(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
Expand Down

0 comments on commit de85122

Please sign in to comment.