Skip to content

Commit

Permalink
SessionState reset replace new with array clear for perf (dotnet#900)
Browse files Browse the repository at this point in the history
  • Loading branch information
Wraith2 authored Feb 3, 2021
1 parent 83584a1 commit b5d7bb6
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ public void Reset()
_language = null;
if (_deltaDirty)
{
_delta = new SessionStateRecord[_maxNumberOfSessionStates];
Array.Clear(_delta, 0, _delta.Length);
_deltaDirty = false;
}
_unrecoverableStatesCount = 0;
Expand Down

0 comments on commit b5d7bb6

Please sign in to comment.