prometheus/util/httputil
Alan Protasio dfae954dc1
Improving Performance on the API Gzip Handler (#12363)
Using github.com/klauspost/compress package to replace the current Gzip Handler on the API.
We see significant improvements using this handler over the current one as shown in the benchmark added.

Also:
* move selection of compression from `newCompressedResponseWriter` to `*CompressionHandler.ServeHTTP`.
* renaming `compressedResponseWriter` since it now only does one kind of compression.

Signed-off-by: Alan Protasio <alanprot@gmail.com>
2023-05-30 16:42:38 +01:00
..
compression.go Improving Performance on the API Gzip Handler (#12363) 2023-05-30 16:42:38 +01:00
compression_test.go Improving Performance on the API Gzip Handler (#12363) 2023-05-30 16:42:38 +01:00
context.go Use struct{} as underlying type for context keys (#6965) 2020-03-11 15:05:35 +01:00
cors.go Switch to grafana/regexp everywhere (#10268) 2022-02-13 00:58:27 +01:00
cors_test.go Switch to grafana/regexp everywhere (#10268) 2022-02-13 00:58:27 +01:00