File tree Expand file tree Collapse file tree 2 files changed +3
-8
lines changed
src/ImageSharp/Processing/Processors/Convolution Expand file tree Collapse file tree 2 files changed +3
-8
lines changed Original file line number Diff line number Diff 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 (
Original file line number Diff line number Diff line change 11// Copyright (c) Six Labors.
22// Licensed under the Six Labors Split License.
33
4- using System . Buffers ;
54using System . Numerics ;
65using System . Runtime . CompilerServices ;
76using System . Runtime . InteropServices ;
You can’t perform that action at this time.
0 commit comments