From 3a879338c6bd052fab73bb1594fba81c67215318 Mon Sep 17 00:00:00 2001 From: James Jackson-South Date: Thu, 16 Apr 2026 11:26:02 +1000 Subject: [PATCH] Cleanup --- .../Convolution/Convolution2PassProcessor{TPixel}.cs | 10 +++------- .../Convolution/ConvolutionProcessor{TPixel}.cs | 1 - 2 files changed, 3 insertions(+), 8 deletions(-) diff --git a/src/ImageSharp/Processing/Processors/Convolution/Convolution2PassProcessor{TPixel}.cs b/src/ImageSharp/Processing/Processors/Convolution/Convolution2PassProcessor{TPixel}.cs index 38b6cab3f8..15ea98936e 100644 --- a/src/ImageSharp/Processing/Processors/Convolution/Convolution2PassProcessor{TPixel}.cs +++ b/src/ImageSharp/Processing/Processors/Convolution/Convolution2PassProcessor{TPixel}.cs @@ -109,10 +109,6 @@ internal class Convolution2PassProcessor : ImageProcessor MemoryAllocator allocator = this.Configuration.MemoryAllocator; - // Convolution is memory-bandwidth-bound with low arithmetic intensity. - // Parallelization degrades performance due to cache line contention from - // overlapping source row reads. See #3111. - // Horizontal convolution HorizontalConvolutionRowOperation horizontalOperation = new( interest, @@ -124,9 +120,9 @@ internal class Convolution2PassProcessor : ImageProcessor this.PreserveAlpha); ParallelRowIterator.IterateRows( - this.Configuration, - interest, - in horizontalOperation); + this.Configuration, + interest, + in horizontalOperation); // Vertical convolution VerticalConvolutionRowOperation verticalOperation = new( diff --git a/src/ImageSharp/Processing/Processors/Convolution/ConvolutionProcessor{TPixel}.cs b/src/ImageSharp/Processing/Processors/Convolution/ConvolutionProcessor{TPixel}.cs index 69d72b3cc0..feaaf30ce0 100644 --- a/src/ImageSharp/Processing/Processors/Convolution/ConvolutionProcessor{TPixel}.cs +++ b/src/ImageSharp/Processing/Processors/Convolution/ConvolutionProcessor{TPixel}.cs @@ -1,7 +1,6 @@ // Copyright (c) Six Labors. // Licensed under the Six Labors Split License. -using System.Buffers; using System.Numerics; using System.Runtime.CompilerServices; using System.Runtime.InteropServices;