jubako / arx

Store files and directory in an archive. Like tar, but faster and with direct random access.
MIT License
151 stars 2 forks source link

orz and xz compression? #53

Open Quackdoc opened 2 months ago

Quackdoc commented 2 months ago

It would be nice to support orz which is a higher compression format then zstd, and also is written natively in rust https://github.com/richox/orz/

It would also be nice to use xz since it also has high compression, and is faster to compress.

mgautierfr commented 2 months ago

I didn't know about orz. It is possible to add new compression algorithm in Jubako format (and so in arx). But it would be nice to know for which use case first.

It would also be nice to use xz since it also has high compression, and is faster to compress.

Jubako (and arx) already support lzma. Which is mostly xz without its internal framing (because Jubako has its own). It is behind the feature lzma (cargo install arx --feature lzma) and with --compression option to arx create.

Quackdoc commented 2 months ago

Ah, I didn't realize that about lzma I can use that for sure. as for orz, I have found that in some cases it's just a nice mid ground, but since arx already has lzma it's not really important.

father-mande commented 2 months ago

Hi,

After your exchange I have read Cargo.toml for features my question : ... when I integrate --feature it's added to default (zstd,fuse) or is it necessary to provide full list of feature one bu one or separated by , or what else.

Sorry perhaps a stupid question due to my poor understanding of rust / cargo.

Philippe.

mgautierfr commented 2 months ago

--features foo activate feature foo. Other features are untouched. You can use the option --no-default-features with --features foo to activate only the feature foo