fasthttp icon indicating copy to clipboard operation
fasthttp copied to clipboard

Add support for zstd (Zstandard) encoding

Open gaby opened this issue 1 year ago • 8 comments

Hello, currently fasthttp supports gzip and brotli as encoding when serving compressed content. It also supports them for fasthttp.fs. It would be very beneficial to add support for zstd whicb provides faster decompression rates.

The library used by fashttp already supports zstd. Information here: https://github.com/klauspost/compress/tree/master/zstd#zstd

Tools like curl already support auto-decompression of zstd content since 2020: https://daniel.haxx.se/blog/2020/08/19/curl-7-72-0-more-compression/

gaby avatar Mar 06 '23 06:03 gaby

@erikdubbelboer new here. can i pick this?

v4rn avatar Mar 19 '23 13:03 v4rn

@v4rn yes please!

erikdubbelboer avatar Mar 19 '23 15:03 erikdubbelboer

@v4rn You had any luck with this?

gaby avatar Apr 09 '23 00:04 gaby

@gaby sorry, I had some competing priorities last couple of weeks, just started looking at this. Prioritizing it this week.

v4rn avatar Apr 11 '23 01:04 v4rn

@v4rn Any luck? thanks!

gaby avatar Jun 18 '23 09:06 gaby

@v4rn Any update on this?

gaby avatar Sep 03 '23 05:09 gaby

@gaby Since I'm curious about the internal implementation of fiber, I'm going to start fasthttp from this issue, wish me luck!

Max-Cheng avatar Dec 22 '23 14:12 Max-Cheng

@Max-Cheng Awesome, yeah main reason i opened this ticket is to eventually add support in Fiber.

gaby avatar Dec 22 '23 14:12 gaby

@gaby zstd will be soon. I need more time to test corner cases https://github.com/valyala/fasthttp/pull/1700

Max-Cheng avatar Jan 20 '24 15:01 Max-Cheng

@Max-Cheng Awesome! Looking forward

gaby avatar Jan 20 '24 16:01 gaby

Fixed via https://github.com/valyala/fasthttp/pull/1701

gaby avatar Feb 21 '24 13:02 gaby