status-go/vendor/github.com/andybalholm/brotli
Igor Sirotin f15c64ced3
chore_: add sentry-go dependency (#6052)
2024-11-06 17:37:08 +00:00
..
matchfinder chore_: add sentry-go dependency (#6052) 2024-11-06 17:37:08 +00:00
LICENSE feat: add parsing for new links format (#3665) 2023-07-04 17:48:52 +04:00
README.md chore_: add sentry-go dependency (#6052) 2024-11-06 17:37:08 +00:00
backward_references.go feat: add parsing for new links format (#3665) 2023-07-04 17:48:52 +04:00
backward_references_hq.go feat: add parsing for new links format (#3665) 2023-07-04 17:48:52 +04:00
bit_cost.go feat: add parsing for new links format (#3665) 2023-07-04 17:48:52 +04:00
bit_reader.go feat: add parsing for new links format (#3665) 2023-07-04 17:48:52 +04:00
bitwriter.go chore_: add sentry-go dependency (#6052) 2024-11-06 17:37:08 +00:00
block_splitter.go feat: add parsing for new links format (#3665) 2023-07-04 17:48:52 +04:00
block_splitter_command.go feat: add parsing for new links format (#3665) 2023-07-04 17:48:52 +04:00
block_splitter_distance.go feat: add parsing for new links format (#3665) 2023-07-04 17:48:52 +04:00
block_splitter_literal.go feat: add parsing for new links format (#3665) 2023-07-04 17:48:52 +04:00
brotli_bit_stream.go chore_: add sentry-go dependency (#6052) 2024-11-06 17:37:08 +00:00
cluster.go feat: add parsing for new links format (#3665) 2023-07-04 17:48:52 +04:00
cluster_command.go feat: add parsing for new links format (#3665) 2023-07-04 17:48:52 +04:00
cluster_distance.go feat: add parsing for new links format (#3665) 2023-07-04 17:48:52 +04:00
cluster_literal.go feat: add parsing for new links format (#3665) 2023-07-04 17:48:52 +04:00
command.go feat: add parsing for new links format (#3665) 2023-07-04 17:48:52 +04:00
compress_fragment.go feat: add parsing for new links format (#3665) 2023-07-04 17:48:52 +04:00
compress_fragment_two_pass.go chore_: add sentry-go dependency (#6052) 2024-11-06 17:37:08 +00:00
constants.go feat: add parsing for new links format (#3665) 2023-07-04 17:48:52 +04:00
context.go feat: add parsing for new links format (#3665) 2023-07-04 17:48:52 +04:00
decode.go feat: add parsing for new links format (#3665) 2023-07-04 17:48:52 +04:00
dictionary.go feat: add parsing for new links format (#3665) 2023-07-04 17:48:52 +04:00
dictionary_hash.go feat: add parsing for new links format (#3665) 2023-07-04 17:48:52 +04:00
encode.go feat: add parsing for new links format (#3665) 2023-07-04 17:48:52 +04:00
encoder.go chore_: add sentry-go dependency (#6052) 2024-11-06 17:37:08 +00:00
encoder_dict.go feat: add parsing for new links format (#3665) 2023-07-04 17:48:52 +04:00
entropy_encode.go feat: add parsing for new links format (#3665) 2023-07-04 17:48:52 +04:00
entropy_encode_static.go chore_: add sentry-go dependency (#6052) 2024-11-06 17:37:08 +00:00
fast_log.go feat: add parsing for new links format (#3665) 2023-07-04 17:48:52 +04:00
find_match_length.go feat: add parsing for new links format (#3665) 2023-07-04 17:48:52 +04:00
h5.go feat: add parsing for new links format (#3665) 2023-07-04 17:48:52 +04:00
h6.go feat: add parsing for new links format (#3665) 2023-07-04 17:48:52 +04:00
h10.go feat: add parsing for new links format (#3665) 2023-07-04 17:48:52 +04:00
hash.go feat: add parsing for new links format (#3665) 2023-07-04 17:48:52 +04:00
hash_composite.go feat: add parsing for new links format (#3665) 2023-07-04 17:48:52 +04:00
hash_forgetful_chain.go feat: add parsing for new links format (#3665) 2023-07-04 17:48:52 +04:00
hash_longest_match_quickly.go feat: add parsing for new links format (#3665) 2023-07-04 17:48:52 +04:00
hash_rolling.go feat: add parsing for new links format (#3665) 2023-07-04 17:48:52 +04:00
histogram.go feat: add parsing for new links format (#3665) 2023-07-04 17:48:52 +04:00
http.go chore_: add sentry-go dependency (#6052) 2024-11-06 17:37:08 +00:00
huffman.go feat: add parsing for new links format (#3665) 2023-07-04 17:48:52 +04:00
literal_cost.go feat: add parsing for new links format (#3665) 2023-07-04 17:48:52 +04:00
memory.go feat: add parsing for new links format (#3665) 2023-07-04 17:48:52 +04:00
metablock.go feat: add parsing for new links format (#3665) 2023-07-04 17:48:52 +04:00
metablock_command.go feat: add parsing for new links format (#3665) 2023-07-04 17:48:52 +04:00
metablock_distance.go feat: add parsing for new links format (#3665) 2023-07-04 17:48:52 +04:00
metablock_literal.go feat: add parsing for new links format (#3665) 2023-07-04 17:48:52 +04:00
params.go feat: add parsing for new links format (#3665) 2023-07-04 17:48:52 +04:00
platform.go feat: add parsing for new links format (#3665) 2023-07-04 17:48:52 +04:00
prefix.go feat: add parsing for new links format (#3665) 2023-07-04 17:48:52 +04:00
prefix_dec.go feat: add parsing for new links format (#3665) 2023-07-04 17:48:52 +04:00
quality.go feat: add parsing for new links format (#3665) 2023-07-04 17:48:52 +04:00
reader.go feat: add parsing for new links format (#3665) 2023-07-04 17:48:52 +04:00
ringbuffer.go feat: add parsing for new links format (#3665) 2023-07-04 17:48:52 +04:00
state.go feat: add parsing for new links format (#3665) 2023-07-04 17:48:52 +04:00
static_dict.go feat: add parsing for new links format (#3665) 2023-07-04 17:48:52 +04:00
static_dict_lut.go feat: add parsing for new links format (#3665) 2023-07-04 17:48:52 +04:00
symbol_list.go feat: add parsing for new links format (#3665) 2023-07-04 17:48:52 +04:00
transform.go feat: add parsing for new links format (#3665) 2023-07-04 17:48:52 +04:00
utf8_util.go feat: add parsing for new links format (#3665) 2023-07-04 17:48:52 +04:00
util.go feat: add parsing for new links format (#3665) 2023-07-04 17:48:52 +04:00
write_bits.go feat: add parsing for new links format (#3665) 2023-07-04 17:48:52 +04:00
writer.go chore_: add sentry-go dependency (#6052) 2024-11-06 17:37:08 +00: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.