From 10a12f752ad07959e3f2e68b34b0afbb00ae825a Mon Sep 17 00:00:00 2001 From: James Jackson-South Date: Sat, 8 May 2021 21:37:36 +0100 Subject: [PATCH] Add TODO to TiffLZWDecoder --- .../Formats/Tiff/Compression/Decompressors/TiffLzwDecoder.cs | 2 ++ 1 file changed, 2 insertions(+) diff --git a/src/ImageSharp/Formats/Tiff/Compression/Decompressors/TiffLzwDecoder.cs b/src/ImageSharp/Formats/Tiff/Compression/Decompressors/TiffLzwDecoder.cs index 5f482bd0b..68d3a7f2a 100644 --- a/src/ImageSharp/Formats/Tiff/Compression/Decompressors/TiffLzwDecoder.cs +++ b/src/ImageSharp/Formats/Tiff/Compression/Decompressors/TiffLzwDecoder.cs @@ -101,6 +101,8 @@ namespace SixLabors.ImageSharp.Formats.Tiff.Compression.Decompressors Guard.NotNull(stream, nameof(stream)); this.stream = stream; + + // TODO: Investigate a manner by which we can avoid this allocation. this.table = new LzwString[TableSize]; for (int i = 0; i < 256; i++) {