@@ -483,7 +483,7 @@ private static void CopyTupleWithMappingSlow(Tuple source, Tuple target, IReadOn
483
483
484
484
private static void CopyTupleWithMappingFast ( PackedTuple source , PackedTuple target , IReadOnlyList < int > map )
485
485
{
486
- for ( int targetIndex = 0 ; targetIndex < map . Count ; targetIndex ++ ) {
486
+ for ( int targetIndex = 0 , count = map . Count ; targetIndex < count ; targetIndex ++ ) {
487
487
var sourceIndex = map [ targetIndex ] ;
488
488
if ( sourceIndex >= 0 )
489
489
CopyPackedValue ( source , sourceIndex , target , targetIndex ) ;
@@ -503,7 +503,7 @@ private static void CopyTupleArrayWithMappingSlow(Tuple[] sources, Tuple target,
503
503
504
504
private static void CopyTupleArrayWithMappingFast ( PackedTuple [ ] sources , PackedTuple target , Pair < int , int > [ ] map )
505
505
{
506
- for ( int targetIndex = 0 ; targetIndex < map . Length ; targetIndex ++ ) {
506
+ for ( int targetIndex = 0 , length = map . Length ; targetIndex < length ; targetIndex ++ ) {
507
507
var sourceInfo = map [ targetIndex ] ;
508
508
var sourceTupleIndex = sourceInfo . First ;
509
509
var sourceFieldIndex = sourceInfo . Second ;
@@ -525,7 +525,7 @@ private static void Copy3TuplesWithMappingSlow(FixedList3<Tuple> sources, Tuple
525
525
526
526
private static void Copy3TuplesWithMappingFast ( FixedList3 < PackedTuple > sources , PackedTuple target , Pair < int , int > [ ] map )
527
527
{
528
- for ( int targetIndex = 0 ; targetIndex < map . Length ; targetIndex ++ ) {
528
+ for ( int targetIndex = 0 , length = map . Length ; targetIndex < length ; targetIndex ++ ) {
529
529
var sourceInfo = map [ targetIndex ] ;
530
530
var sourceTupleIndex = sourceInfo . First ;
531
531
var sourceFieldIndex = sourceInfo . Second ;
0 commit comments