|
|
@ -116,11 +116,10 @@ namespace SixLabors.ImageSharp.Processing.Processors.Quantization |
|
|
|
|
|
|
|
|
/// <summary>
|
|
|
/// <summary>
|
|
|
/// A cache for storing color distance matching results.
|
|
|
/// A cache for storing color distance matching results.
|
|
|
/// Not threadsafe but cache misses will be very rare and shouldn't
|
|
|
|
|
|
/// significantly negatively affect performance.
|
|
|
|
|
|
/// </summary>
|
|
|
/// </summary>
|
|
|
/// <remarks>
|
|
|
/// <remarks>
|
|
|
/// The cache is limited to 646866 entries at 0.62MB.
|
|
|
/// The cache is limited to 646866 entries at 0.62MB.
|
|
|
|
|
|
/// TODO: How do we make this threadsafe?
|
|
|
/// </remarks>
|
|
|
/// </remarks>
|
|
|
private struct ColorDistanceCache |
|
|
private struct ColorDistanceCache |
|
|
{ |
|
|
{ |
|
|
|