Pass large structs byref instead

This commit is contained in:
Asriel Camora
2023-11-10 18:41:58 -08:00
parent 3edb156d97
commit 036cbb2fb4
9 changed files with 21 additions and 27 deletions
+1 -1
View File
@@ -9,7 +9,7 @@ public readonly record struct SolverSolution {
public readonly IEnumerable<ActionType> ActionEnumerable { init => actions = SanitizeCombos(value).ToList(); }
public readonly SimulationState State { get; init; }
public SolverSolution(IEnumerable<ActionType> actions, SimulationState state)
public SolverSolution(IEnumerable<ActionType> actions, in SimulationState state)
{
ActionEnumerable = actions;
State = state;