gzip and pipe to output (performance consideration)

q1) Can i check if I do a
gzip -c file | encrypt (some parameters)

a) does gzip print out the output line by line and pipe it to the encrypt function or

b) gzip will be perform 1st, then the output will be pipe all at once to the encrypt function ?


q2) Will performing gzip | encrypt have any better performance considerations then gzip, then encrypt


Source: unix

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.