Sample programs demonstrating the ability to compress/decompress data on the fly when writing to or reading from a file in Fortran using named pipes (FIFOs).
- Set your compiler in
Makefile(ifort,gfortranorf77) - Run
make
Run: ./write <N> [F] [L]
where:
N - number of lines to write to the file [required]
F - compression filter (gzip, pigz, lz4c, lzop) [optional]
L - compression level (from -1 to -9) [optional]
Data will be written to the data.* file.
If no compression filter is specified, data will not be compressed.
Run ./read [F]
where:
F - compression filter (use the same as for writing) [optional]