lijian d8d1e9afb9 更新api服务 1 år sedan
..
matchfinder d8d1e9afb9 更新api服务 1 år sedan
LICENSE 48c2e0e9f9 依赖更新为 go mod 1 år sedan
README.md d8d1e9afb9 更新api服务 1 år sedan
backward_references.go 48c2e0e9f9 依赖更新为 go mod 1 år sedan
backward_references_hq.go 48c2e0e9f9 依赖更新为 go mod 1 år sedan
bit_cost.go 48c2e0e9f9 依赖更新为 go mod 1 år sedan
bit_reader.go 48c2e0e9f9 依赖更新为 go mod 1 år sedan
bitwriter.go d8d1e9afb9 更新api服务 1 år sedan
block_splitter.go 48c2e0e9f9 依赖更新为 go mod 1 år sedan
block_splitter_command.go 48c2e0e9f9 依赖更新为 go mod 1 år sedan
block_splitter_distance.go 48c2e0e9f9 依赖更新为 go mod 1 år sedan
block_splitter_literal.go 48c2e0e9f9 依赖更新为 go mod 1 år sedan
brotli_bit_stream.go d8d1e9afb9 更新api服务 1 år sedan
cluster.go 48c2e0e9f9 依赖更新为 go mod 1 år sedan
cluster_command.go 48c2e0e9f9 依赖更新为 go mod 1 år sedan
cluster_distance.go 48c2e0e9f9 依赖更新为 go mod 1 år sedan
cluster_literal.go 48c2e0e9f9 依赖更新为 go mod 1 år sedan
command.go 48c2e0e9f9 依赖更新为 go mod 1 år sedan
compress_fragment.go 48c2e0e9f9 依赖更新为 go mod 1 år sedan
compress_fragment_two_pass.go d8d1e9afb9 更新api服务 1 år sedan
constants.go 48c2e0e9f9 依赖更新为 go mod 1 år sedan
context.go 48c2e0e9f9 依赖更新为 go mod 1 år sedan
decode.go 48c2e0e9f9 依赖更新为 go mod 1 år sedan
dictionary.go 48c2e0e9f9 依赖更新为 go mod 1 år sedan
dictionary_hash.go 48c2e0e9f9 依赖更新为 go mod 1 år sedan
encode.go 48c2e0e9f9 依赖更新为 go mod 1 år sedan
encoder.go d8d1e9afb9 更新api服务 1 år sedan
encoder_dict.go 48c2e0e9f9 依赖更新为 go mod 1 år sedan
entropy_encode.go 48c2e0e9f9 依赖更新为 go mod 1 år sedan
entropy_encode_static.go d8d1e9afb9 更新api服务 1 år sedan
fast_log.go 48c2e0e9f9 依赖更新为 go mod 1 år sedan
find_match_length.go 48c2e0e9f9 依赖更新为 go mod 1 år sedan
h10.go 48c2e0e9f9 依赖更新为 go mod 1 år sedan
h5.go 48c2e0e9f9 依赖更新为 go mod 1 år sedan
h6.go 48c2e0e9f9 依赖更新为 go mod 1 år sedan
hash.go 48c2e0e9f9 依赖更新为 go mod 1 år sedan
hash_composite.go 48c2e0e9f9 依赖更新为 go mod 1 år sedan
hash_forgetful_chain.go 48c2e0e9f9 依赖更新为 go mod 1 år sedan
hash_longest_match_quickly.go 48c2e0e9f9 依赖更新为 go mod 1 år sedan
hash_rolling.go 48c2e0e9f9 依赖更新为 go mod 1 år sedan
histogram.go 48c2e0e9f9 依赖更新为 go mod 1 år sedan
http.go d8d1e9afb9 更新api服务 1 år sedan
huffman.go 48c2e0e9f9 依赖更新为 go mod 1 år sedan
literal_cost.go 48c2e0e9f9 依赖更新为 go mod 1 år sedan
memory.go 48c2e0e9f9 依赖更新为 go mod 1 år sedan
metablock.go 48c2e0e9f9 依赖更新为 go mod 1 år sedan
metablock_command.go 48c2e0e9f9 依赖更新为 go mod 1 år sedan
metablock_distance.go 48c2e0e9f9 依赖更新为 go mod 1 år sedan
metablock_literal.go 48c2e0e9f9 依赖更新为 go mod 1 år sedan
params.go 48c2e0e9f9 依赖更新为 go mod 1 år sedan
platform.go 48c2e0e9f9 依赖更新为 go mod 1 år sedan
prefix.go 48c2e0e9f9 依赖更新为 go mod 1 år sedan
prefix_dec.go 48c2e0e9f9 依赖更新为 go mod 1 år sedan
quality.go 48c2e0e9f9 依赖更新为 go mod 1 år sedan
reader.go 48c2e0e9f9 依赖更新为 go mod 1 år sedan
ringbuffer.go 48c2e0e9f9 依赖更新为 go mod 1 år sedan
state.go 48c2e0e9f9 依赖更新为 go mod 1 år sedan
static_dict.go 48c2e0e9f9 依赖更新为 go mod 1 år sedan
static_dict_lut.go 48c2e0e9f9 依赖更新为 go mod 1 år sedan
symbol_list.go 48c2e0e9f9 依赖更新为 go mod 1 år sedan
transform.go 48c2e0e9f9 依赖更新为 go mod 1 år sedan
utf8_util.go 48c2e0e9f9 依赖更新为 go mod 1 år sedan
util.go 48c2e0e9f9 依赖更新为 go mod 1 år sedan
write_bits.go 48c2e0e9f9 依赖更新为 go mod 1 år sedan
writer.go d8d1e9afb9 更新api服务 1 år sedan

README.md

This package is a brotli compressor and decompressor implemented in Go. It was translated from the reference implementation (https://github.com/google/brotli) with the c2go tool at https://github.com/andybalholm/c2go.

I have been working on new compression algorithms (not translated from C) in the matchfinder package. You can use them with the NewWriterV2 function. Currently they give better results than the old implementation (at least for compressing my test file, Newton’s Opticks) on levels 2 to 6.

I am using it in production with https://github.com/andybalholm/redwood.

API documentation is found at https://pkg.go.dev/github.com/andybalholm/brotli?tab=doc.