aboutsummaryrefslogtreecommitdiff
path: root/lib/Net.Compression/VNLib.Net.Compression
diff options
context:
space:
mode:
authorLibravatar vnugent <public@vaughnnugent.com>2023-08-05 00:52:48 -0400
committerLibravatar vnugent <public@vaughnnugent.com>2023-08-05 00:52:48 -0400
commit46c6450fdc9b62aa04bae545b03d93a2e8c8895a (patch)
treec5648e1ce68acd28cb29807ba65d90af3ba1caef /lib/Net.Compression/VNLib.Net.Compression
parenta3ded6043a926735142f3bb48093e83135044c06 (diff)
Response compression buffer patch
Diffstat (limited to 'lib/Net.Compression/VNLib.Net.Compression')
-rw-r--r--lib/Net.Compression/VNLib.Net.Compression/CompressorManager.cs9
1 files changed, 1 insertions, 8 deletions
diff --git a/lib/Net.Compression/VNLib.Net.Compression/CompressorManager.cs b/lib/Net.Compression/VNLib.Net.Compression/CompressorManager.cs
index af77329..0695791 100644
--- a/lib/Net.Compression/VNLib.Net.Compression/CompressorManager.cs
+++ b/lib/Net.Compression/VNLib.Net.Compression/CompressorManager.cs
@@ -36,9 +36,9 @@
using System;
using System.Buffers;
+using System.Text.Json;
using System.Diagnostics;
using System.IO.Compression;
-using System.Text.Json;
using System.Runtime.CompilerServices;
using VNLib.Net.Http;
@@ -170,13 +170,6 @@ namespace VNLib.Net.Compression
throw new InvalidOperationException("This compressor instance has not been initialized, cannot free compressor");
}
- /*
- * We only alloc the buffer on the first call because we can assume this is the
- * largest input data the compressor will see, and the block size should be used
- * as a reference for callers. If its too small it will just have to be flushed
- */
-
-
//Compress the block
return CompressBlock(compressor.Instance, output, input, false);
}