vasi / pixz

Parallel, indexed xz compressor
BSD 2-Clause "Simplified" License
711 stars 61 forks source link

Clarify README section on differences with xz #115

Closed bearrito closed 6 months ago

bearrito commented 8 months ago

I'm not critiquing the decision, I'm trying to understand if there is a technical hurdle lurking in the background.

Right now we use xz as part of our A/B partition update for firmware like systems. As part of how the system works, we need to stream to stdout. The performance of pixz is impressive so we'd like to use it...

vasi commented 8 months ago

Stdout is totally supported! I can do cat SOMEFILE | pixz | wc -c and I get totally reasonable results. Is there some situation where stdout is not working for you?

bearrito commented 8 months ago

@vasi Maybe I'm misinterpreting this statement, my fault if so.

pixz does not support the command line option -c or --stdout

Namely we have something like this

xz -d -c $IMAGE_PATH | sudo dd skip=$SKIP_BLOCKS of=$PARTITION 
vasi commented 8 months ago

Ah, so your problem is we don't have the exact same arguments as xz. But you can still do the same operation, just worded a bit different:

pixz -d < $IMAGE_PATH | sudo dd skip=$SKIP_BLOCKS of=$PARTITION

Probably we should edit the README.md to be clearer!

bearrito commented 8 months ago

Thanks for the fast response. Get some sleep (or not) ! I'll try that tomorrow!

vasi commented 6 months ago

Updated the readme!