Commit Graph

10 Commits

Author SHA1 Message Date
Andrey Malevich
91ea434837 Revert D13575719: [tp2] Update zstd to 1.3.8 as 1.3.x
Differential Revision:
D13575719

Original commit changeset: eb7961078ad1

fbshipit-source-id: 844414e83f8a05df89a21dc1c2a6b9e60bad5dcc
2019-01-23 18:19:13 -08:00
Nick Terrell
64cde69334 Update zstd to 1.3.8 as 1.3.x
Summary: Update zstd in TP2 to zstd-1.3.8.

Reviewed By: pixelb

Differential Revision: D13575719

fbshipit-source-id: eb7961078ad161eb633b08b7e80e87f1c63ccca5
2019-01-23 11:16:22 -08:00
Jun Wu
f37a5d8df7 rust: upgrade rust to 1.30.0 and bump zstd-sys version
Summary:
The vendored crates were changed by D12811597. Bump `zstd-sys` in `Cargo.toml` to be compatible.
As we're here, also bump rust compiler to 1.30.0 so it's consistent with buck build.

Reviewed By: kulshrax

Differential Revision: D12952552

fbshipit-source-id: 6274bf829b98b16aeb6795209d12aba8b475b46d
2018-11-06 18:13:20 -08:00
Jun Wu
3adc813687 codemod: add copyright headers
Summary: This is just the result of running `./contrib/fix-code.py $(hg files .)`

Reviewed By: ikostia

Differential Revision: D10213075

fbshipit-source-id: 88577c9b9588a5b44fcf1fe6f0082815dfeb363a
2018-10-26 15:09:12 -07:00
Saurabh Singh
1ffa44eae3 zstd-sys: update the package version
Summary: The old version cannot be found and its making the build fail.

Reviewed By: markbt

Differential Revision: D10255834

fbshipit-source-id: d14572885423622ecfe3730bbda07ae1bee7363a
2018-10-09 07:26:31 -07:00
Lukas Piatkowski
d01ebe2166 rust-crates-io: add crossbeam to tp2
Reviewed By: ikostia

Differential Revision: D10244968

fbshipit-source-id: 8d06bb64b6a1227ae589caf0588a1f3657603ce9
2018-10-08 21:32:00 -07:00
Jun Wu
4ba555977c vendoredcrates: upgrade zstd-sys to the latest
Summary:
zstd has dropped `ZSTD_TARGETLENGTH_MIN` [1]. Let's upgrade our code to be
compatible.

[1]: c2c47e24e0

Reviewed By: DurhamG

Differential Revision: D8683180

fbshipit-source-id: 66cbab1ddd254b1e0b91232565b4d512810ba03d
2018-06-28 15:08:01 -07:00
Jun Wu
807e8af1e1 zstdelta: update to rand 0.5
Summary: Update rand to 0.5. Make it build with buck.

Reviewed By: phillco

Differential Revision: D8412349

fbshipit-source-id: 663b9ca7d3c2b08ade756b4cb3f135b3af2a3d20
2018-06-14 21:38:33 -07:00
Jun Wu
6210435392 zstdelta: add a simple command-line utility for debugging
Summary:
The command-line utility takes 2 files and compress/decompress them.
It's not meant to be formally used like `zstd`. But is handy to do simple
tests without writing Rust code.

Reviewed By: DurhamG

Differential Revision: D7596169

fbshipit-source-id: 6c21a38e21a061fab7032ff823b907b0e586bd42
2018-05-25 16:28:59 -07:00
Jun Wu
7a348e55a9 zstdelta: rust library to use zstd to do delta-ing and compression
Summary:
Using zstd dictionary as the "delta base" can result in overall better and
faster compression (than things like mdiff + zstd, or fossil_delta + zstd).

This diff adds utility functions to do delta generation and application.
It tweaks compression parameters (wlog, hlog) to optimize the "delta-ing"
usecase. It now hardcoded the "fast" strategy (level=1) to have reasonable
speed. We can add other compression levels later if needed.

Reviewed By: jsgf

Differential Revision: D7562908

fbshipit-source-id: 3334059b4abeb8923d603d055bde0bfdc854bc7b
2018-05-25 09:34:34 -07:00