@@ -26,7 +26,7 @@ public static partial class ParallelRowIterator
2626 public static void IterateRows < T > ( Configuration configuration , Rectangle rectangle , in T operation )
2727 where T : struct , IRowOperation
2828 {
29- var parallelSettings = ParallelExecutionSettings . FromConfiguration ( configuration ) ;
29+ ParallelExecutionSettings parallelSettings = ParallelExecutionSettings . FromConfiguration ( configuration ) ;
3030 IterateRows ( rectangle , in parallelSettings , in operation ) ;
3131 }
3232
@@ -65,8 +65,8 @@ public static void IterateRows<T>(
6565 }
6666
6767 int verticalStep = DivideCeil ( rectangle . Height , numOfSteps ) ;
68- var parallelOptions = new ParallelOptions { MaxDegreeOfParallelism = numOfSteps } ;
69- var wrappingOperation = new RowOperationWrapper < T > ( top , bottom , verticalStep , in operation ) ;
68+ ParallelOptions parallelOptions = new ( ) { MaxDegreeOfParallelism = numOfSteps } ;
69+ RowOperationWrapper < T > wrappingOperation = new ( top , bottom , verticalStep , in operation ) ;
7070
7171 Parallel . For (
7272 0 ,
@@ -88,7 +88,7 @@ public static void IterateRows<T, TBuffer>(Configuration configuration, Rectangl
8888 where T : struct , IRowOperation < TBuffer >
8989 where TBuffer : unmanaged
9090 {
91- var parallelSettings = ParallelExecutionSettings . FromConfiguration ( configuration ) ;
91+ ParallelExecutionSettings parallelSettings = ParallelExecutionSettings . FromConfiguration ( configuration ) ;
9292 IterateRows < T , TBuffer > ( rectangle , in parallelSettings , in operation ) ;
9393 }
9494
@@ -135,8 +135,8 @@ public static void IterateRows<T, TBuffer>(
135135 }
136136
137137 int verticalStep = DivideCeil ( height , numOfSteps ) ;
138- var parallelOptions = new ParallelOptions { MaxDegreeOfParallelism = numOfSteps } ;
139- var wrappingOperation = new RowOperationWrapper < T , TBuffer > ( top , bottom , verticalStep , bufferLength , allocator , in operation ) ;
138+ ParallelOptions parallelOptions = new ( ) { MaxDegreeOfParallelism = numOfSteps } ;
139+ RowOperationWrapper < T , TBuffer > wrappingOperation = new ( top , bottom , verticalStep , bufferLength , allocator , in operation ) ;
140140
141141 Parallel . For (
142142 0 ,
@@ -156,7 +156,7 @@ public static void IterateRows<T, TBuffer>(
156156 public static void IterateRowIntervals < T > ( Configuration configuration , Rectangle rectangle , in T operation )
157157 where T : struct , IRowIntervalOperation
158158 {
159- var parallelSettings = ParallelExecutionSettings . FromConfiguration ( configuration ) ;
159+ ParallelExecutionSettings parallelSettings = ParallelExecutionSettings . FromConfiguration ( configuration ) ;
160160 IterateRowIntervals ( rectangle , in parallelSettings , in operation ) ;
161161 }
162162
@@ -186,14 +186,14 @@ public static void IterateRowIntervals<T>(
186186 // Avoid TPL overhead in this trivial case:
187187 if ( numOfSteps == 1 )
188188 {
189- var rows = new RowInterval ( top , bottom ) ;
189+ RowInterval rows = new ( top , bottom ) ;
190190 Unsafe . AsRef ( in operation ) . Invoke ( in rows ) ;
191191 return ;
192192 }
193193
194194 int verticalStep = DivideCeil ( rectangle . Height , numOfSteps ) ;
195- var parallelOptions = new ParallelOptions { MaxDegreeOfParallelism = numOfSteps } ;
196- var wrappingOperation = new RowIntervalOperationWrapper < T > ( top , bottom , verticalStep , in operation ) ;
195+ ParallelOptions parallelOptions = new ( ) { MaxDegreeOfParallelism = numOfSteps } ;
196+ RowIntervalOperationWrapper < T > wrappingOperation = new ( top , bottom , verticalStep , in operation ) ;
197197
198198 Parallel . For (
199199 0 ,
@@ -215,7 +215,7 @@ public static void IterateRowIntervals<T, TBuffer>(Configuration configuration,
215215 where T : struct , IRowIntervalOperation < TBuffer >
216216 where TBuffer : unmanaged
217217 {
218- var parallelSettings = ParallelExecutionSettings . FromConfiguration ( configuration ) ;
218+ ParallelExecutionSettings parallelSettings = ParallelExecutionSettings . FromConfiguration ( configuration ) ;
219219 IterateRowIntervals < T , TBuffer > ( rectangle , in parallelSettings , in operation ) ;
220220 }
221221
@@ -250,7 +250,7 @@ public static void IterateRowIntervals<T, TBuffer>(
250250 // Avoid TPL overhead in this trivial case:
251251 if ( numOfSteps == 1 )
252252 {
253- var rows = new RowInterval ( top , bottom ) ;
253+ RowInterval rows = new ( top , bottom ) ;
254254 using IMemoryOwner < TBuffer > buffer = allocator . Allocate < TBuffer > ( bufferLength ) ;
255255
256256 Unsafe . AsRef ( in operation ) . Invoke ( in rows , buffer . Memory . Span ) ;
@@ -259,8 +259,8 @@ public static void IterateRowIntervals<T, TBuffer>(
259259 }
260260
261261 int verticalStep = DivideCeil ( height , numOfSteps ) ;
262- var parallelOptions = new ParallelOptions { MaxDegreeOfParallelism = numOfSteps } ;
263- var wrappingOperation = new RowIntervalOperationWrapper < T , TBuffer > ( top , bottom , verticalStep , bufferLength , allocator , in operation ) ;
262+ ParallelOptions parallelOptions = new ( ) { MaxDegreeOfParallelism = numOfSteps } ;
263+ RowIntervalOperationWrapper < T , TBuffer > wrappingOperation = new ( top , bottom , verticalStep , bufferLength , allocator , in operation ) ;
264264
265265 Parallel . For (
266266 0 ,
0 commit comments