nsqio/nsq

nsqd: Use Klaus Post's compression libraries

开放

#1,484 创建于 2024年4月15日

 (5 条评论) (1 个反应) (0 位负责人)Go (2,898 个派生)batch import
help wantedperf

仓库指标

星标
 (25,788 个星标)
PR 合并指标
 (PR 指标待抓取)

描述

We would quite like to use compression with NSQ to save on data transfer costs, but the CPU impact is higher than we'd like. Our experiments have shown that Klaus Post's compression libraries perform much better than the standard library Deflate and Google's Snappy, with the sweet spot appearing to be level 3 flate compressing our traffic to about 25% of its original size, but only incurring a CPU cost equivalent to Snappy.

Would there be any interest in taking a PR that makes this change?

贡献者指南