Skip to content

v1.0.0 - Fast Decompression Tail for Compressed Files

Choose a tag to compare

@acpguedes acpguedes released this 14 Aug 06:02
· 65 commits to main since this release
cb81ce1

First public release of ztail — a GNU-like command-line tool designed for fast access to the last lines of compressed files.

Features

  • Supports .gz, .bgz, and .zip compressed files.
  • Reads only the necessary portion of the file to retrieve the last N lines — avoiding full decompression.
  • Performance up to 10x faster than zcat | tail in tests with large files.
  • Simple CLI interface, compatible with typical tail usage.
  • Uses efficient circular buffer implementation for memory management.

Usage example

ztail large_file.gz -n 20

Build

mkdir build && cd build
cmake ..
make

Notes

  • Requires zlib and libzip installed on the system.
  • Tested on Linux (GCC 13.3.0).