aboutsummaryrefslogtreecommitdiff
path: root/compress_test.go
AgeCommit message (Collapse)AuthorFilesLines
2024-03-02Enable perfsprint linter; fix up lint issues (#1727)Gravatar Oleksandr Redko 1-1/+2
2022-09-15Deprecate Go 1.15 (#1379)Gravatar Aoang 1-3/+3
* Dropping support for 1.15. * Replaces Go 1.16 Deprecated functions * Update test build flag * Fix import sort and comment * Update github.com/klauspost/compress to v1.15.9 https://github.com/klauspost/compress improved performance and changed Minimum version is 1.16, this should be the final supported release for Go 1.16 (https://github.com/klauspost/compress/commit/6d0019a95afa3221f7522d1f2eed0033b5e79470) .
2021-12-13Use %w to wrap errors (#1175)Gravatar Erik Dubbelboer 1-9/+9
2019-10-16Speed up testing by running tests in parallelGravatar Erik Dubbelboer 1-0/+16
2017-05-17Limit heap memory usage when compressing high number of concurrent responsesGravatar Aliaksandr Valialkin 1-31/+158
Previously each concurrent compression could allocate huge compression state with the size up to 1Mb each. So 10K concurrent connections could result in 10Gb of compression state in the heap. This CL limits the number of compression states among concurrent requests when {Append,Write}{Gzip,Deflate}* functions are called to O(GOMAXPROCS). These functions are used by CompressHandler* for non-streaming responses, i.e. it should cover the majority of use cases. Memory usage for 10K concurrent connections that compress responses drops from 10Gb to 200Mb after this CL.
2015-12-31Added AppendGzipBytes and AppendGunzipBytes for simplifying ↵Gravatar Aliaksandr Valialkin 1-0/+26
gzipping/gunzipping request/response bodies
2015-12-29Added tests for compress.goGravatar Aliaksandr Valialkin 1-0/+63