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

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.