xframe/vendor/github.com/andybalholm/brotli
lwl0608 13b0b8e7a2 init 2024-10-12 12:55:20 +08:00
..
matchfinder init 2024-10-12 12:55:20 +08:00
LICENSE init 2024-10-12 12:55:20 +08:00
README.md init 2024-10-12 12:55:20 +08:00
backward_references.go init 2024-10-12 12:55:20 +08:00
backward_references_hq.go init 2024-10-12 12:55:20 +08:00
bit_cost.go init 2024-10-12 12:55:20 +08:00
bit_reader.go init 2024-10-12 12:55:20 +08:00
bitwriter.go init 2024-10-12 12:55:20 +08:00
block_splitter.go init 2024-10-12 12:55:20 +08:00
block_splitter_command.go init 2024-10-12 12:55:20 +08:00
block_splitter_distance.go init 2024-10-12 12:55:20 +08:00
block_splitter_literal.go init 2024-10-12 12:55:20 +08:00
brotli_bit_stream.go init 2024-10-12 12:55:20 +08:00
cluster.go init 2024-10-12 12:55:20 +08:00
cluster_command.go init 2024-10-12 12:55:20 +08:00
cluster_distance.go init 2024-10-12 12:55:20 +08:00
cluster_literal.go init 2024-10-12 12:55:20 +08:00
command.go init 2024-10-12 12:55:20 +08:00
compress_fragment.go init 2024-10-12 12:55:20 +08:00
compress_fragment_two_pass.go init 2024-10-12 12:55:20 +08:00
constants.go init 2024-10-12 12:55:20 +08:00
context.go init 2024-10-12 12:55:20 +08:00
decode.go init 2024-10-12 12:55:20 +08:00
dictionary.go init 2024-10-12 12:55:20 +08:00
dictionary_hash.go init 2024-10-12 12:55:20 +08:00
encode.go init 2024-10-12 12:55:20 +08:00
encoder.go init 2024-10-12 12:55:20 +08:00
encoder_dict.go init 2024-10-12 12:55:20 +08:00
entropy_encode.go init 2024-10-12 12:55:20 +08:00
entropy_encode_static.go init 2024-10-12 12:55:20 +08:00
fast_log.go init 2024-10-12 12:55:20 +08:00
find_match_length.go init 2024-10-12 12:55:20 +08:00
h5.go init 2024-10-12 12:55:20 +08:00
h6.go init 2024-10-12 12:55:20 +08:00
h10.go init 2024-10-12 12:55:20 +08:00
hash.go init 2024-10-12 12:55:20 +08:00
hash_composite.go init 2024-10-12 12:55:20 +08:00
hash_forgetful_chain.go init 2024-10-12 12:55:20 +08:00
hash_longest_match_quickly.go init 2024-10-12 12:55:20 +08:00
hash_rolling.go init 2024-10-12 12:55:20 +08:00
histogram.go init 2024-10-12 12:55:20 +08:00
http.go init 2024-10-12 12:55:20 +08:00
huffman.go init 2024-10-12 12:55:20 +08:00
literal_cost.go init 2024-10-12 12:55:20 +08:00
memory.go init 2024-10-12 12:55:20 +08:00
metablock.go init 2024-10-12 12:55:20 +08:00
metablock_command.go init 2024-10-12 12:55:20 +08:00
metablock_distance.go init 2024-10-12 12:55:20 +08:00
metablock_literal.go init 2024-10-12 12:55:20 +08:00
params.go init 2024-10-12 12:55:20 +08:00
platform.go init 2024-10-12 12:55:20 +08:00
prefix.go init 2024-10-12 12:55:20 +08:00
prefix_dec.go init 2024-10-12 12:55:20 +08:00
quality.go init 2024-10-12 12:55:20 +08:00
reader.go init 2024-10-12 12:55:20 +08:00
ringbuffer.go init 2024-10-12 12:55:20 +08:00
state.go init 2024-10-12 12:55:20 +08:00
static_dict.go init 2024-10-12 12:55:20 +08:00
static_dict_lut.go init 2024-10-12 12:55:20 +08:00
symbol_list.go init 2024-10-12 12:55:20 +08:00
transform.go init 2024-10-12 12:55:20 +08:00
utf8_util.go init 2024-10-12 12:55:20 +08:00
util.go init 2024-10-12 12:55:20 +08:00
write_bits.go init 2024-10-12 12:55:20 +08:00
writer.go init 2024-10-12 12:55:20 +08:00

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