V2EX = way to explore
V2EX 是一个关于分享和探索的地方
Sign Up Now
For Existing Member  Sign In
wzw
V2EX  ›  问与答

Golang 中用什么来替代 Zstd ?

  •  
  •   wzw · May 31, 2020 · 2551 views
    This topic created in 2170 days ago, the information mentioned may be changed or developed.
    在用 Zstd, 想换成纯 Go 的方案, 所以需要换掉 Zstd.

    用 zlib?

    https://github.com/DataDog/zstd
    3 replies    2020-05-31 16:25:02 +08:00
    maoxs2
        1
    maoxs2  
       May 31, 2020 via Android
    https://github.com/klauspost/compress 不过我看大部分还是用的 datadog 的这个,在需要速度的情况下。像 badger 也用,但是也可以选择 disable cgo 不用
    wzw
        2
    wzw  
    OP
       May 31, 2020
    @maoxs2 #1 Zstd 是真的好用. 那我再看看吧
    maoxs2
        3
    maoxs2  
       May 31, 2020 via Android
    感觉 go 上要追求性能的话就大部分都去 cgo 了……goasm 有点小众了。
    About   ·   Help   ·   Advertise   ·   Blog   ·   API   ·   FAQ   ·   Solana   ·   850 Online   Highest 6679   ·     Select Language
    创意工作者们的社区
    World is powered by solitude
    VERSION: 3.9.8.5 · 28ms · UTC 20:32 · PVG 04:32 · LAX 13:32 · JFK 16:32
    ♥ Do have faith in what you're doing.