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

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.