.lz4
Archive
GZIP (GNU Zip)
GZIP은 DEFLATE 알고리즘을 사용하는 파일 압축 형식으로, 웹 서버의 HTTP 응답 압축, TAR 아카이브 압축(tar.gz), Unix/Linux 시스템의 로그 파일 압축에 주로 사용됩니다.
MIME 타입
application/x-lz4
유형
바이너리
압축
무손실
장점
- + Decompression speed exceeding 4 GB/s per core
- + Very fast compression with minimal CPU overhead
- + Widely used in production systems (ZFS, Btrfs, databases)
단점
- − Lower compression ratio than gzip, bzip2, or xz
- − Not suitable for archival where size minimization is key
- − Less common as a standalone file format for distribution
.LZ4 사용 시점
GZIP은 단일 파일 압축, HTTP 콘텐츠 인코딩, tar.gz 아카이브에 사용하세요. 웹에서는 Brotli가 더 나은 압축을 제공합니다.
기술 세부사항
GZIP은 헤더(매직 넘버 1f 8b, 압축 방법, 타임스탬프), DEFLATE 압축 데이터, CRC32 체크섬 + 원본 크기(32비트)로 구성됩니다. 단일 파일만 압축합니다(여러 파일은 TAR로 먼저 묶음). 압축 레벨 1(빠름)~9(최고 압축).
역사
Jean-loup Gailly와 Mark Adler가 1992년 Unix compress의 특허 문제를 해결하기 위해 GZIP을 만들었습니다. GNU 프로젝트의 일부이며 인터넷 표준(RFC 1952)으로 등록되어 있습니다.