Skip to content

Commit 3a87933

Browse files
Cleanup
1 parent 03670ab commit 3a87933

File tree

2 files changed

+3
-8
lines changed

2 files changed

+3
-8
lines changed

src/ImageSharp/Processing/Processors/Convolution/Convolution2PassProcessor{TPixel}.cs

Lines changed: 3 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -109,10 +109,6 @@ protected override void OnFrameApply(ImageFrame<TPixel> source)
109109

110110
MemoryAllocator allocator = this.Configuration.MemoryAllocator;
111111

112-
// Convolution is memory-bandwidth-bound with low arithmetic intensity.
113-
// Parallelization degrades performance due to cache line contention from
114-
// overlapping source row reads. See #3111.
115-
116112
// Horizontal convolution
117113
HorizontalConvolutionRowOperation horizontalOperation = new(
118114
interest,
@@ -124,9 +120,9 @@ protected override void OnFrameApply(ImageFrame<TPixel> source)
124120
this.PreserveAlpha);
125121

126122
ParallelRowIterator.IterateRows<HorizontalConvolutionRowOperation, Vector4>(
127-
this.Configuration,
128-
interest,
129-
in horizontalOperation);
123+
this.Configuration,
124+
interest,
125+
in horizontalOperation);
130126

131127
// Vertical convolution
132128
VerticalConvolutionRowOperation verticalOperation = new(

src/ImageSharp/Processing/Processors/Convolution/ConvolutionProcessor{TPixel}.cs

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,6 @@
11
// Copyright (c) Six Labors.
22
// Licensed under the Six Labors Split License.
33

4-
using System.Buffers;
54
using System.Numerics;
65
using System.Runtime.CompilerServices;
76
using System.Runtime.InteropServices;

0 commit comments

Comments
 (0)