Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

zstd compression (1.1 backport) #3442

Merged
merged 5 commits into from
Dec 16, 2017

Conversation

ThomasWaldmann
Copy link
Member

No description provided.

based on willyvmm's work in PR borgbackup#3116, but some changes:

- removed any mulithreading changes
- add zstandard in setup.py install_requires
- tests
- fix: minimum compression level is 1 (not 0)
- use 3 for the default compression level
- use ID 03 00 for zstd
- only convert to bytes if we don't have bytes yet
- move zstd code so that code blocks are ordered by ID
- other cosmetic fixes

(cherry picked from commit 11b2311)
currently requires an externally available libzstd >= 1.3.0,
no bundled zstd yet.

(cherry picked from commit aec36f6)
setup_zstd.py modified so it is just amending the Extension() kwargs,
but the Extension is initialized by the caller.

this way, amending can happend multiple times (e.g. for multiple
compression algorithms).

also:
- move include/library dirs processing for system-library case
- move system zstd prefix detection to setup_zstd module
- cosmetic: setup.py whitespace fixes
- prefer system zstd option, document zstd min. requirement

(cherry picked from commit 34b92ff)
only .c and .h files + license

(cherry picked from commit dc883f6)
@codecov-io
Copy link

codecov-io commented Dec 15, 2017

Codecov Report

Merging #3442 into 1.1-maint will not change coverage.
The diff coverage is n/a.

Impacted file tree graph

@@            Coverage Diff             @@
##           1.1-maint    #3442   +/-   ##
==========================================
  Coverage      85.99%   85.99%           
==========================================
  Files             23       23           
  Lines           9091     9091           
  Branches        1538     1538           
==========================================
  Hits            7818     7818           
+ Misses           860      859    -1     
- Partials         413      414    +1
Impacted Files Coverage Δ
src/borg/helpers.py 87.1% <ø> (-0.08%) ⬇️
src/borg/archive.py 82.98% <0%> (+0.07%) ⬆️

Continue to review full report at Codecov.

Legend - Click here to learn more
Δ = absolute <relative> (impact), ø = not affected, ? = missing data
Powered by Codecov. Last update 4ac6ee2...c738358. Read the comment docs.

@ThomasWaldmann ThomasWaldmann merged commit 6ab02e7 into borgbackup:1.1-maint Dec 16, 2017
@ThomasWaldmann ThomasWaldmann deleted the zstd-1.1 branch December 16, 2017 20:40
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants