SVI a9c2af8856 SVI Исправления, вендоринг 3 ماه پیش
..
flate a9c2af8856 SVI Исправления, вендоринг 3 ماه پیش
matchfinder a9c2af8856 SVI Исправления, вендоринг 3 ماه پیش
.gitignore c358e0bd73 SVI Переезд репы 3 ماه پیش
LICENSE c358e0bd73 SVI Переезд репы 3 ماه پیش
README.md a9c2af8856 SVI Исправления, вендоринг 3 ماه پیش
backward_references.go c358e0bd73 SVI Переезд репы 3 ماه پیش
backward_references_hq.go c358e0bd73 SVI Переезд репы 3 ماه پیش
bit_cost.go c358e0bd73 SVI Переезд репы 3 ماه پیش
bit_reader.go c358e0bd73 SVI Переезд репы 3 ماه پیش
bitwriter.go c358e0bd73 SVI Переезд репы 3 ماه پیش
block_splitter.go c358e0bd73 SVI Переезд репы 3 ماه پیش
block_splitter_command.go c358e0bd73 SVI Переезд репы 3 ماه پیش
block_splitter_distance.go c358e0bd73 SVI Переезд репы 3 ماه پیش
block_splitter_literal.go c358e0bd73 SVI Переезд репы 3 ماه پیش
brotli_bit_stream.go a9c2af8856 SVI Исправления, вендоринг 3 ماه پیش
cluster.go c358e0bd73 SVI Переезд репы 3 ماه پیش
cluster_command.go c358e0bd73 SVI Переезд репы 3 ماه پیش
cluster_distance.go c358e0bd73 SVI Переезд репы 3 ماه پیش
cluster_literal.go c358e0bd73 SVI Переезд репы 3 ماه پیش
command.go c358e0bd73 SVI Переезд репы 3 ماه پیش
compress_fragment.go c358e0bd73 SVI Переезд репы 3 ماه پیش
compress_fragment_two_pass.go c358e0bd73 SVI Переезд репы 3 ماه پیش
constants.go c358e0bd73 SVI Переезд репы 3 ماه پیش
context.go c358e0bd73 SVI Переезд репы 3 ماه پیش
decode.go c358e0bd73 SVI Переезд репы 3 ماه پیش
dictionary.go c358e0bd73 SVI Переезд репы 3 ماه پیش
dictionary_hash.go c358e0bd73 SVI Переезд репы 3 ماه پیش
encode.go c358e0bd73 SVI Переезд репы 3 ماه پیش
encoder.go a9c2af8856 SVI Исправления, вендоринг 3 ماه پیش
encoder_dict.go c358e0bd73 SVI Переезд репы 3 ماه پیش
encoder_fast.go a9c2af8856 SVI Исправления, вендоринг 3 ماه پیش
entropy_encode.go c358e0bd73 SVI Переезд репы 3 ماه پیش
entropy_encode_static.go c358e0bd73 SVI Переезд репы 3 ماه پیش
fast_log.go c358e0bd73 SVI Переезд репы 3 ماه پیش
find_match_length.go c358e0bd73 SVI Переезд репы 3 ماه پیش
h10.go c358e0bd73 SVI Переезд репы 3 ماه پیش
h5.go c358e0bd73 SVI Переезд репы 3 ماه پیش
h6.go c358e0bd73 SVI Переезд репы 3 ماه پیش
hash.go c358e0bd73 SVI Переезд репы 3 ماه پیش
hash_composite.go c358e0bd73 SVI Переезд репы 3 ماه پیش
hash_forgetful_chain.go c358e0bd73 SVI Переезд репы 3 ماه پیش
hash_longest_match_quickly.go c358e0bd73 SVI Переезд репы 3 ماه پیش
hash_rolling.go c358e0bd73 SVI Переезд репы 3 ماه پیش
histogram.go c358e0bd73 SVI Переезд репы 3 ماه پیش
http.go a9c2af8856 SVI Исправления, вендоринг 3 ماه پیش
huffman.go c358e0bd73 SVI Переезд репы 3 ماه پیش
literal_cost.go c358e0bd73 SVI Переезд репы 3 ماه پیش
memory.go c358e0bd73 SVI Переезд репы 3 ماه پیش
metablock.go c358e0bd73 SVI Переезд репы 3 ماه پیش
metablock_command.go a9c2af8856 SVI Исправления, вендоринг 3 ماه پیش
metablock_distance.go a9c2af8856 SVI Исправления, вендоринг 3 ماه پیش
metablock_literal.go a9c2af8856 SVI Исправления, вендоринг 3 ماه پیش
params.go c358e0bd73 SVI Переезд репы 3 ماه پیش
platform.go c358e0bd73 SVI Переезд репы 3 ماه پیش
prefix.go c358e0bd73 SVI Переезд репы 3 ماه پیش
prefix_dec.go c358e0bd73 SVI Переезд репы 3 ماه پیش
quality.go c358e0bd73 SVI Переезд репы 3 ماه پیش
reader.go c358e0bd73 SVI Переезд репы 3 ماه پیش
ringbuffer.go c358e0bd73 SVI Переезд репы 3 ماه پیش
state.go c358e0bd73 SVI Переезд репы 3 ماه پیش
static_dict.go c358e0bd73 SVI Переезд репы 3 ماه پیش
static_dict_lut.go c358e0bd73 SVI Переезд репы 3 ماه پیش
symbol_list.go c358e0bd73 SVI Переезд репы 3 ماه پیش
transform.go c358e0bd73 SVI Переезд репы 3 ماه پیش
utf8_util.go c358e0bd73 SVI Переезд репы 3 ماه پیش
util.go c358e0bd73 SVI Переезд репы 3 ماه پیش
write_bits.go c358e0bd73 SVI Переезд репы 3 ماه پیش
writer.go a9c2af8856 SVI Исправления, вендоринг 3 ماه پیش

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 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.

Roadmap

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 0 to 9.

The new APIs are currently considered experimental, and are not covered by any SemVer compatibility guarantees.