smaz

A pure Go implementation of the smaz compression library for short strings.

  • 所有者: kjk/smaz
  • 平台:
  • 許可證: MIT License
  • 分類:
  • 主題:
  • 喜歡:
    0
      比較:

Github星跟蹤圖

This is a pure Go implementation of antirez's
SMAZ, a library for compressing short,
English strings (it won't work well for other languages).

Installation

$ go get github.com/kjk/smaz

Usage

import (
  "github.com/kjk/smaz"
)

func main() {
  s := "Now is the time for all good men to come to the aid of the party."
  compressed := smaz.Encode(nil, []byte(s))
  decompressed, err := smaz.Decode(nil, compressed)
  if err != nil {
    fmt.Printf("decompressed: %s\n", string(decompressed))
    ...
}

Full API documentation.

Notes

This is not a direct port of the C version. It is not guaranteed that the output
of smaz.Encode will be precisely the same as the C library. However, the
output should be decompressible by the C library, and the output of the C
library should be decompressible by smaz.Decode.

Author

Salvatore Sanfilippo designed SMAZ and wrote
[C implementation]](https://github.com/antirez/smaz).

Caleb Spare wrote initial
Go port.

Krzysztof Kowalczyk improved speed of
decompression (2.4x faster) and compression (1.3x faster).

Contributors

Antoine Grondin

License

MIT Licensed.

Other implementations

主要指標

概覽
名稱與所有者kjk/smaz
主編程語言Go
編程語言Go (語言數: 1)
平台
許可證MIT License
所有者活动
創建於2014-12-11 00:56:52
推送於2015-12-02 18:38:15
最后一次提交2015-12-02 10:38:15
發布數0
用户参与
星數20
關注者數3
派生數4
提交數37
已啟用問題?
問題數0
打開的問題數0
拉請求數1
打開的拉請求數0
關閉的拉請求數1
项目设置
已啟用Wiki?
已存檔?
是復刻?
已鎖定?
是鏡像?
是私有?