user 16d38111e1 d05 Права на файлы 2 år sedan
..
matchfinder 62881bab8e d06 Затаскивание во внутренний пакет 2 år sedan
LICENSE 16d38111e1 d05 Права на файлы 2 år sedan
README.md 16d38111e1 d05 Права на файлы 2 år sedan
backward_references.go 16d38111e1 d05 Права на файлы 2 år sedan
backward_references_hq.go 16d38111e1 d05 Права на файлы 2 år sedan
bit_cost.go 16d38111e1 d05 Права на файлы 2 år sedan
bit_reader.go 16d38111e1 d05 Права на файлы 2 år sedan
bitwriter.go 62881bab8e d06 Затаскивание во внутренний пакет 2 år sedan
block_splitter.go 16d38111e1 d05 Права на файлы 2 år sedan
block_splitter_command.go 16d38111e1 d05 Права на файлы 2 år sedan
block_splitter_distance.go 16d38111e1 d05 Права на файлы 2 år sedan
block_splitter_literal.go 16d38111e1 d05 Права на файлы 2 år sedan
brotli_bit_stream.go 16d38111e1 d05 Права на файлы 2 år sedan
cluster.go 16d38111e1 d05 Права на файлы 2 år sedan
cluster_command.go 16d38111e1 d05 Права на файлы 2 år sedan
cluster_distance.go 16d38111e1 d05 Права на файлы 2 år sedan
cluster_literal.go 16d38111e1 d05 Права на файлы 2 år sedan
command.go 16d38111e1 d05 Права на файлы 2 år sedan
compress_fragment.go 16d38111e1 d05 Права на файлы 2 år sedan
compress_fragment_two_pass.go 16d38111e1 d05 Права на файлы 2 år sedan
constants.go 16d38111e1 d05 Права на файлы 2 år sedan
context.go 16d38111e1 d05 Права на файлы 2 år sedan
decode.go 16d38111e1 d05 Права на файлы 2 år sedan
dictionary.go 16d38111e1 d05 Права на файлы 2 år sedan
dictionary_hash.go 16d38111e1 d05 Права на файлы 2 år sedan
encode.go 16d38111e1 d05 Права на файлы 2 år sedan
encoder.go 62881bab8e d06 Затаскивание во внутренний пакет 2 år sedan
encoder_dict.go 16d38111e1 d05 Права на файлы 2 år sedan
entropy_encode.go 16d38111e1 d05 Права на файлы 2 år sedan
entropy_encode_static.go 16d38111e1 d05 Права на файлы 2 år sedan
fast_log.go 16d38111e1 d05 Права на файлы 2 år sedan
find_match_length.go 16d38111e1 d05 Права на файлы 2 år sedan
h10.go 16d38111e1 d05 Права на файлы 2 år sedan
h5.go 16d38111e1 d05 Права на файлы 2 år sedan
h6.go 16d38111e1 d05 Права на файлы 2 år sedan
hash.go 16d38111e1 d05 Права на файлы 2 år sedan
hash_composite.go 16d38111e1 d05 Права на файлы 2 år sedan
hash_forgetful_chain.go 16d38111e1 d05 Права на файлы 2 år sedan
hash_longest_match_quickly.go 16d38111e1 d05 Права на файлы 2 år sedan
hash_rolling.go 16d38111e1 d05 Права на файлы 2 år sedan
histogram.go 16d38111e1 d05 Права на файлы 2 år sedan
http.go 16d38111e1 d05 Права на файлы 2 år sedan
huffman.go 16d38111e1 d05 Права на файлы 2 år sedan
literal_cost.go 16d38111e1 d05 Права на файлы 2 år sedan
memory.go 16d38111e1 d05 Права на файлы 2 år sedan
metablock.go 16d38111e1 d05 Права на файлы 2 år sedan
metablock_command.go 16d38111e1 d05 Права на файлы 2 år sedan
metablock_distance.go 16d38111e1 d05 Права на файлы 2 år sedan
metablock_literal.go 16d38111e1 d05 Права на файлы 2 år sedan
params.go 16d38111e1 d05 Права на файлы 2 år sedan
platform.go 16d38111e1 d05 Права на файлы 2 år sedan
prefix.go 16d38111e1 d05 Права на файлы 2 år sedan
prefix_dec.go 16d38111e1 d05 Права на файлы 2 år sedan
quality.go 16d38111e1 d05 Права на файлы 2 år sedan
reader.go 16d38111e1 d05 Права на файлы 2 år sedan
ringbuffer.go 16d38111e1 d05 Права на файлы 2 år sedan
state.go 16d38111e1 d05 Права на файлы 2 år sedan
static_dict.go 16d38111e1 d05 Права на файлы 2 år sedan
static_dict_lut.go 16d38111e1 d05 Права на файлы 2 år sedan
symbol_list.go 16d38111e1 d05 Права на файлы 2 år sedan
transform.go 16d38111e1 d05 Права на файлы 2 år sedan
utf8_util.go 16d38111e1 d05 Права на файлы 2 år sedan
util.go 16d38111e1 d05 Права на файлы 2 år sedan
write_bits.go 16d38111e1 d05 Права на файлы 2 år sedan
writer.go 16d38111e1 d05 Права на файлы 2 å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.