Comments (2)
The rzip pre-processing phase scans only a chunk at a time. For example, when I archive a virtual machine of 75G, it takes 8 passes to compress the whole file.Each pass becomes a chunk (as lrzip-next
sees it) and each chunk is compressed as a series of blocks and is a subset of the whole file. So what you are suggesting is not possible.
However, if what you are suggesting is compress a chunk at a time, i.e. compress chunks 1-3 only, or 4-6 only, while possible, would be very messy since the file would have to pieced back together again on decompression.
A different approach would be to use a program like dd
to pass only so many bytes to lrzip-next
. Using a combination of block size and count, and or skip, you can approximate your desire.
$ dd if=enwik9 bs=1M count=100 | lrzip-next -fo partofenwik9.lrz -L1 -
Using configuration file /home/peter/.lrzip/lrzip.conf
The following options are in effect for this COMPRESSION.
Threading is ENABLED. Number of CPUs detected: 8
Detected 16,558,112,768 bytes ram
Nice Value: 19
Show Progress
Verbose
Overwrite Files
Output Filename Specified: partofenwik9.lrz
Temporary Directory set as: ./
Compression mode is: LZMA. LZ4 Compressibility testing enabled
Compression level 1
RZIP Compression level 1
Initial LZMA Dictionary Size: 262,144
SHA256 Hashing Used
Heuristically Computed Compression Window: 52 = 5,200MB
100+0 records in
100+0 records out
104857600 bytes (105 MB, 100 MiB) copied, 0.0590955 s, 1.8 GB/s
Per Thread Memory Overhead is 9,322,496
Beginning rzip pre-processing phase
Compression Ratio: 3.036. bpb: 2.635. Average Compression Speed: 33.333MB/s.
Total time: 00:00:02.48
I'll leave this open
from lrzip-next.
I think the dd
command would achieve what you seek. The risk is that changes occur to the file you are archiving mid-way.
from lrzip-next.
Related Issues (20)
- ZPAQ Compression issue when lrizip-next block size > zpaq block size HOT 3
- :lady_beetle: linker warning: missing .note.GNU-stack section implies executable stack HOT 2
- Found typo in viewing compression info on a lrz file HOT 1
- :lady_beetle: lrzip-next segfaults when STDIN + -o filename used. HOT 2
- :lady_beetle: [Certain files compressed with ZPAQ fail to compress successfully] HOT 5
- :lady_beetle: [Slower than lrzip, same arguments, stuck at 99%] HOT 4
- :lady_beetle: [Broken Pipe at 55% on L9] HOT 21
- Huanglei3 reported a bug in lrzip that is not duplicated here HOT 3
- Read zero page memory HOT 1
- :bulb: Have lzma backend respect -p# option HOT 9
- :bulb: possible precomp support HOT 2
- :lady_beetle: Decompress/Test/Info fails with --bzip2, gzip, lzo
- :lady_beetle: Losing on ISO/Zip on rare cases HOT 11
- From lrzip: lrzip 0.631 occasionally hangs forever HOT 5
- Enhance lzo compression by using all 5 methods HOT 2
- :lady_beetle: double free detected in tcache 2 HOT 1
- :lady_beetle: zstd compression fails when all blocks are incompressible HOT 1
- :lady_beetle: fake_mremap does not compile HOT 3
- From lrzip: Suggestion to support encrypted Stdin/Stdout when password provided on command line #251 HOT 1
- :bulb: Allow PROCESSORS to be set in lrzip.conf file HOT 1
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from lrzip-next.