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

Regards,
Noob


Source: unix

Leave a Reply