I see that this uses a brotli package, but I just came across this Golang native brotli package that claims to perform much better than the other ones. Perhaps it's worth evaluating?
https://github.com/molecule-man/go-brrr
Here's a blog post where the author showed the great lengths they went to to optimize it. https://blog.andr2i.com/posts/2026-05-03-notes-from-optimizing-cpu-bound-go-hot-paths
I see that this uses a brotli package, but I just came across this Golang native brotli package that claims to perform much better than the other ones. Perhaps it's worth evaluating?
https://github.com/molecule-man/go-brrr
Here's a blog post where the author showed the great lengths they went to to optimize it. https://blog.andr2i.com/posts/2026-05-03-notes-from-optimizing-cpu-bound-go-hot-paths