BROTLI-RS(1)

πŸŽ€ NAME πŸŽ€

okay so bestie, meet brotli-rs β€” a brotli compressor and decompressor. that's the whole gig. compressing, decompressing, iconic behavior only. πŸ’…


✨ SYNOPSIS ✨

brotli-rs [FLAGS]

πŸ¦‹ DESCRIPTION πŸ¦‹

so like. it's a brotli compressor and decompressor whose interface avoids the rust stdlib entirely. which is not a flex, it's a lifestyle β€” that's literally what makes it work on embedded devices and kernels. no cap. 🫢

it's designed with a pluggable allocator, so if you do want the standard lib's allocator, you can absolutely just plug it in like it's a new phone case. and all the included code is safe. all of it. every last bit. 😌


πŸ’– FLAGS πŸ’–

  • -catable, --catable β€” turns on concatable mode, so the data it makes can be added onto a block generated with --apendable. it's giving "yes and". ✨
  • -nothreadpool, --nothreadpool β€” shuts the work thread pool all the way off. bye bestie πŸ‘‹
  • -appendable, --appendable β€” turns on appendable mode, so the datastream can be extended with more data from --catable mode. they're a duo fr fr.
  • -magic, --magic β€” slaps a magic number in as the very first bytes so a brotli compressed stream can be spotted easily. it's giving name tag at a party πŸͺͺ✨
  • -customdictionary=[FILE] β€” reads a custom dictionary in from a file. [FILE] is your file. obviously.
  • --dump-dictionary β€” prints out the dictionary that's being used. show and tell πŸŽ€
  • -utf8 β€” forces the utf8 context mode in the compression. periodt.
  • -msb β€” forces the msb context mode in the compression.
  • -lsb β€” forces the lsb context mode in the compression.
  • -signed β€” forces the signed context mode in the compression.
  • -efficient β€” favors cpu efficiency over low latency. girlboss choices πŸ’…
  • -lowlatency β€” favors cpu low latency over efficiency. the opposite girlboss choice.
  • -i β€” displays the intermediate representation of metablocks. peek behind the curtain bestie πŸ‘€
  • -0, -q0 β€” sets quality = 0
  • -1, -q1 β€” sets quality = 1
  • -2, -q2 β€” sets quality = 2
  • -3, -q3 β€” sets quality = 3
  • -4, -q4 β€” sets quality = 4
  • -5, -q5 β€” sets quality = 5
  • -6, -q6 β€” sets quality = 6
  • -7, -q7 β€” sets quality = 7
  • -8, -q8 β€” sets quality = 8
  • -9, -q9 β€” sets quality = 9
  • -10, -q10 β€” sets quality = 10
  • -11, -q11 β€” sets quality = 11
  • -9.5, -q9.5 β€” sets quality = 10 πŸ‘€ (yes, the 9.5 one is quality 10. no, we don't make the rules. this is literally what it says.)
  • -9.5x, -q9.5x β€” sets quality = 11
  • -q9.5y β€” sets quality = 12 πŸ”₯ (this one has no non-q twin, she's solo)
  • -l[NUMBER] β€” sets the input block size
  • -j[NUMBER] β€” sets the maximum size of the threadpool
  • -bytescore=[NUMBER] β€” sets the literal_byte_score value of the hasher. default is 0.
  • -w[NUMBER] β€” sets the lgwin value. default is 22.
  • -validate, --validate β€” enables validation. trust but verify bestie πŸ’œ
  • -bs[NUMBER] β€” sets the buffer size
  • -findprior β€” enables prior bitmask detection
  • -findspeed=[NUMBER] β€” sets cdf adaptation detection to [NUMBER]
  • -basicstride β€” sets stride
  • -stride β€” sets stride
  • -advstride β€” sets stride
  • -speed=[NUMBER] β€” sets speed
  • -avoiddistanceprefixsearch β€” avoids distance prefix search. dodging it gracefully 🌈
  • -b[NUMBER] β€” does benchmark
  • -c β€” enables compression mode
  • -h, --help β€” prints the help text. when in doubt, ask the program itself 🫢

πŸ‘‘ EXIT STATUS πŸ‘‘

  • 0 β€” successful program execution. we ate and left no crumbs ✨
  • 1 β€” unsuccessful program execution. it's giving flop 😭
  • 101 β€” the program panicked. full meltdown, no thoughts, head empty πŸ’€

🌈 EXAMPLES 🌈

compresses the content of /tmp/input and writes it to /tmp/output:

$ brotli-rs -c /tmp/input /tmp/output

look at her go. main character energy fr fr πŸ¦‹


🧚 AUTHOR 🧚

Daniel Reiter Horn <danielrh@dropbox.com> β€” thank you for your service, king πŸ‘‘


and that's the whole page bestie!! this one lives in the General Commands Manual as BROTLI-RS(1), and ngl there's no date stamped on it, so that's the entire lore. go compress something. slay πŸ’–βœ¨πŸŽ€

πŸ“¦ where this page comes from