r/compression • • 2h ago

Lossless compression of LLM weights below their per-tensor entropy: Qwen3.8-27B BF16 at 10.43 bits/weight, bit-identical (open codec + paper)

Thumbnail
reddit.com
1 Upvotes

r/compression • • 1d ago

Zstandard v1.6.0 released

Thumbnail
github.com
11 Upvotes

Reading the release notes, it sounds like Meta was initially planning on this coming out later, but a vulnerability leading to a CVE prompted them to push it out early.

  • Decompression performance improvements for 64-bit ARM.
  • Compression performance improvements for CPUs with SVE2.
  • Performance improvements on RISC-V with RVV.
  • Some command line adjustments and minor API changes.

r/compression • • 2d ago

Neuralzip: lossless neural text compression, including model weights in the archive

1 Upvotes

Disclosure: I used AI assistance for development

I built Neuralzip, an open-source Python library for lossless text compression using a small neural model and arithmetic coding.

The model is trained on the input text. Its weights are stored alongside the encoded stream, metadata, and checksum in one archive. Decoding uses the saved model without retraining.

Results from two saved research models:

InputOriginalgzip-9Neuralzip
5 book collection3,120,899 B1,191,527 B791,134 B
Alice in Wonderland151,094 B53,249 B63,048 B

The five-book archive is 33.6% smaller than gzip-9. Gzip wins on Alice, and PPMd produced a smaller five-book archive at 763,603 bytes.

Neuralzip sizes include the model weights and complete encoded stream. Shared decoder/runtime installation sizes are excluded. Both archives were decoded and compared with the original bytes.

Encoding requires training, decoding also evaluates the model, and both are much slower than conventional codecs. Small inputs can grow because of model overhead. These measurements use saved research checkpoints; fresh training runs can differ.

python -m pip install neuralzip
neuralzip encode notes.txt
neuralzip decode notes.txt.nzip

Source · PyPI

I’d appreciate feedback on the archive accounting, implementation, and which datasets and baselines would make the next evaluation useful.


r/compression • • 2d ago

How do I accomplish this level of compression? (With keeping dates the same and relatively easy)

Thumbnail
gallery
0 Upvotes

so I use my Meta glasses a lot with the amount of sports I play but I don't understand this:

How does such a short video (10-20s) take up the same amount of storage as an edited video (2:59s) I know Meta glasses/Phones might take videos at a high level of encoding but in reality its still 1080p so when I edit all of these videos together in CapCut (Theres enough to be said there so please dont roast me...) and then exported 1080p 3 minute video comes out to literally the same if not less storage on my disk I just dont understand how it works. I do understand that it reduces the quality of the videos a little bit but not astronmically enough bitrate wise to lower the storage by 2000%

And lastly, BECAUSE I have so many videos I'd LOVE to compress ALL of them this small so that they take up literally 10-20x less space on my phone/PC/Icloud photos (Preferably with keeping the dates/time the same, that way I know I can sort it based on date)

how is this 5s video ~20mb more than this 37s video

this 3 minute video is only double the size of the 5s video


r/compression • • 2d ago

fineseed 100% Lossless compression for Al models (SafeTensors, GGUF, ONNX) like .zip for models

Post image
2 Upvotes

r/compression • • 2d ago

New MP3 Encoder "Helix Ultra" beats LAME MP3.

5 Upvotes

Hi.

It's a listening test comparing the following MP3 encoders @ 192 kbps:

LAME 4.0 -V2

Helix -V110 -HF2 

Helix Ultra  -V110 -HF2 -E1Z . The same build as the one used here.

Download: Audio samples and logs


r/compression • • 3d ago

Comparing GPT-2 Large vs Qwen3.5-9B-Base as lossless 62-bit arithmetic coders (560 B -> 53 B vs 343 B zlib -9)

Thumbnail
gallery
8 Upvotes

Built a local Python + llama-cpp-python tool (runs 100% locally on an RTX 4060, not a hosted web service) to test 62-bit integer arithmetic coding using local GGUF language models as next-token predictors and verify exact SHA-256 round-trip decoding.

On this 560 B test text (US Constitution preamble + a fresh paragraph about information theory), zlib -9 gets 343 B, gpt2-large gets 62 B (0.886 bpb, 97.88% coder efficiency), and Qwen3.5-9B-Base gets 53 B (0.757 bpb, 97.81% efficiency).

The token-level -log2(P) heatmap makes pretraining memorization vs real generalization pretty obvious: the preamble is almost solid green for both models while the unseen second paragraph turns orange/red.


r/compression • • 4d ago

Tencent gave Google's Guetzli a GPU. I volunteered to keep it alive. v3.0.0 is out.

21 Upvotes

You may remember Guetzli: Google's perceptual JPEG encoder from 2017. It makes JPEGs 20–30% smaller than libjpeg at the same visual quality. It does this by running Butteraugli, a model of the human eye, over and over until the eye stops complaining. It encodes at the speed of continental drift and eats about 300 MB of RAM per megapixel.

Some engineers at Tencent took pity on it and wrote CUDA and OpenCL backends. That's the hard part, and it's their work. I'm just a volunteer who adopted the fork after the original authors. I just shipped v3.0.0: https://github.com/doterax/guetzli-cuda-opencl

What happened:

  • The OpenCL backend works again. Before, --opencl on a 12 MP photo produced a 47 KB JPEG instead of a 2.9 MB one. Technically excellent compression. Not ideal for anyone who wanted to look at the photo. OpenCL, CUDA and CPU now agree with each other.
  • Faster, same output. On an RTX 3060 Laptop, a 12 MP photo went from 35.0 s to 20.9 s with CUDA. On the CPU, a 1 MP PNG went from 65.1 s to 44.3 s. Still Guetzli, just a bit less glacial.
  • Fixed bugs older than some of your codecs. One frequency-masking bug had been there since 2017. Another one, from 2025, sent 4:2:0 chroma changes to the wrong block. With the fix, 4:2:0 photos come out 0.4–1.8% smaller. Free bytes from removing bugs.
  • GPU errors no longer crash it. If the GPU fails, the image is encoded on the CPU and you get one polite message instead of abort().
  • --check mode runs the GPU and the CPU for each stage and reports every disagreement in the last float digits. For people who love -ffast-math and don't trust it.
  • Under the hood: rewritten in C++20 with CMake. The kernels ship inside the binary. CUDA is loaded at runtime, so it still starts on machines with no NVIDIA driver. Builds for Windows, Linux and macOS (arm64).

Does the world need a faster encoder that is still about 1000× slower than mozjpeg? No. Did I enjoy chasing a float that differed in the last bit between CUDA and OpenCL? Also no. But it's done, and it's free.

Benchmarks, flames and "just use JPEG XL" comments are all welcome below 😂


r/compression • • 5d ago

NibbleZip – a free Windows tool that compresses into 7z/ZIP while freeing the originals' space as it goes (and extracts the same way). Beta, looking for testers.

0 Upvotes

Full disclosure, since it matters for a tool that deletes files: the code was written by an AI (Claude, by Anthropic). The idea, design and hands-on testing are mine; I'm not a programmer and haven't reviewed the code line by line. That's why the design doesn't rely on trusting the code: nothing is deleted until it has been read back and verified, and the test suite kills the program at every stage of every kind of job (hundreds of scenarios) to prove it recovers. The tests, the source and a write-up of how it works are all on GitHub.

So Please - DO NOT USE THIS ON DATA THAT MATTERS AT ALL! I AM NOT RESPONSIBLE FOR ANY DATA LOSS!! I've used this on my own files so far (on things I'm okay losing - game installs, copies of files, etc.) and everything seems to work good on my end - I tried a few public zip tests and hashes matched too.

After I started using HatchZip, I thought it was such a good idea, but could we have a similar tool to zip files instead?

So the idea sprouted from the idea that compressing normally needs room for the files AND the archive at the same time. When a drive is nearly full, you can't compress the very things that are filling it. Same in reverse when unpacking a huge archive, and I wondered how can we use as little space as possible?

NibbleZip compresses a chunk, writes it to the archive, reads it back from disk, decompresses it and compares it byte for byte with the source, records it in a journal, and only then frees the space of that chunk of the originals. Big files are released from the inside as they go (NTFS sparse files), so free space actually rises while it works. Extraction does the reverse: the archive gives its space back as verified files come out.

In my own testing, a 29.5 GB game folder became a 9.7 GB 7z on a drive with about 32 GB free, without ever needing room for both.

- Normal 7z and ZIP output that 7-Zip, WinRAR etc. open. No custom format.

- Stop, crash or power cut: it resumes where it left off, or a half-processed file can be put back exactly as it was.

- One archive, one per item, or one per file (e.g. a ROM folder where every game becomes its own zip), and split parts (.001, .002...).

- Untick one box and it's an ordinary archiver that deletes nothing.

Again, this is a beta. Please try it on copies of data first. I'd love reports of anything odd: different drives (exFAT, USB, network), huge file counts, very large single files, archives made by other tools.

GitHub (source, download, how it works): https://github.com/cloudhaacker/NibbleZip

VirusTotal scan of the release: https://www.virustotal.com/gui/file/a4bfb46971d3b5b0151b3a31ea26aa5a4aa3b02c57e17888e65f32c7e8d2f0b2?nocache=1

For some reason I'm getting flagged by Kaspersky - VHO:Rootkit.Win32.Convagent.gen - Acronis (Static ML) - Undetected

If you don't trust my builds, you can analyze the code yourself and build it, my last version didn't pop this so I'm pretty sure it's a false positive.

I'm open to suggestions, and will listen to any constructive feedback, but I won't guarantee how long things might take to fix/change - I just started making this for fun and to see what Claude could do with this. Thanks for checking it out, and if you can think of somewhere else it might be good to post, let me know or share with others! Thanks!

Free, MIT licence, no telemetry, nothing to install.


r/compression • • 5d ago

exact-gpu-jpeg: CUDA JPEG decode/encode that’s byte-identical to libjpeg-turbo and Pillow

Thumbnail
reddit.com
4 Upvotes

GPU JPEG decoders are fast, but their pixels differ from the CPU libraries'. On 102 public test images, nvJPEG matched libjpeg-turbo on none of them, by up to 110 levels at 4:2:0. That quietly breaks reproducible ML pipelines, test baselines and caches whenever decoding moves between CPU and GPU.

exact-gpu-jpeg decodes on the GPU and returns libjpeg-turbo's pixels byte for byte (accurate IDCT, fancy upsampling), and its encoder writes the same bytes as Pillow. Anything it can't reproduce exactly, progressive files for example, goes to libjpeg-turbo itself, so the output is always the reference.

On a 2016 GTX 1070: a 30 MP camera photo decodes in 11.3 ms, against 185 ms for libjpeg-turbo on one core and 164 ms for nvJPEG on the same card. Batches of small images: 7,310 images/s. Encoding: 5.5x faster than Pillow with identical files.

Where it loses is listed near the top of the README: one small image at a time, small encodes against 8 CPU threads, progressive files. Everything so far is from one machine, so results from other GPUs are very welcome: `python bench/reproduce.py --quick`, and there's a pinned issue for them.

The parallel Huffman stage (Weißenberger & Schmidt's self-synchronising method) is drawn in docs/huffman-sync.md, and there's a white paper in docs/ covering the method, the evidence and the limits.

https://github.com/mrluker/exact-gpu-jpeg


r/compression • • 7d ago

OXN - open-source neural image codec with JPEG XL / AVIF / WebP comparison (Kodak holdout, PSNR + MS-SSIM + LPIPS + speed)

2 Upvotes

Hi!

I’m not a pioneer in this field - you can find both free and commercial projects on the internet (https://github.com/adimalkar/Neural-Image-Compressor , https://ai.nero.com/image-compressor).

Some time ago I shared my neural image codec here https://github.com/ageMLex2021/oxn and got fair criticism :PSNR alone is not enough, and I needed to compare against JPEGXL and AVif. So I did the homework. Setup: Kodak kodim21-24 (these 4 images were never used in training), matched bitrates 0.15-0.30 bpp, metrics PSNR, MS-SSIM and LPIPS, plus encode/decode times. Full tables, methodology and a visual crop comparison: https://github.com/ageMLex2021/oxn/blob/main/BENCHMARKS.md

formats comparison

Short version of what I found:

  • vs JPEG: OXN wins by +4-5 dB PSNR with no blocking artifacts, and by a wide margin on MS-SSIM and LPIPS.
  • The size angle (same data, read backwards): to match OXN's PSNR at 0.15 bpp, JPEG needs about 0.30 bpp - a 2x bigger file. To match OXN's LPIPS at 0.15 bpp, JPEG XL does not get there even at 0.30 bpp.
  • vs JPEG XL: JXL is slightly ahead on PSNR at matched bitrate, but OXN is clearly better on LPIPS at low bitrates (0.20-0.26 vs 0.30-0.32) - it keeps textures more natural where JXL tends to smooth them out.
  • vs WebP: WebP is ahead on PSNR, OXN is comparable or better on LPIPS at <=0.20 bpp.
  • vs AVIF: AVIF wins overall on this set.
  • Speed is the honest price: 30-300x slower encode and ~50x slower decode than the C reference encoders (0.3 s vs 1-60 ms for a 768x512 image). It is a Python/PyTorch research codec, so think archiving and batch use, not realtime. It is lossy, experimental, MIT licensed, and the trained weights are in the repo, so you can reproduce everything yourself. How it works in one paragraph: the image is split into 16x16 patches, a transformer autoencoder compresses each patch to 24 numbers, every patch picks its own quantization scale from a small ladder (adaptive rate), and a hyperprior predicts the value distribution per token so the rANS entropy coder only stores the residuals. Happy to answer questions and to run more tests if you have suggestions .

r/compression • • 7d ago

Does anyone know what happened to the 55.4 Yottabyte ZIP Bomb?

1 Upvotes

A user called FinderFire2 posted something called funny.zip, supposedly around 2.6 MB and claiming to expand to 55.4 YB.

Has anyone ever found the actual file, downloaded it, or tested its contents? Is it real, or was it just a joke?

I'm trying to find out what happened to the original file. Any information, archives, or screenshots would be appreciated!


r/compression • • 7d ago

ctLame: LAME’s VBR encoder on all cores, byte-identical output, 14x faster on 8 cores

10 Upvotes

ctLame 0.3.0 is a C++ port of LAME 4.0's VBR encoder (-V) that encodes a single file on all cores and writes exactly the same bytes as lame.exe.

On an i9-11900K (8C/16T) it encoded 45 h of CD audio (-V 4) in 85 s; lame.exe took 1195 s. All 343 files were bit-identical.

LAME is sequential by design: psychoacoustic state carries from frame to frame, and so does the bit reservoir. ctLame splits each frame into stateless parts (FFT, MDCT, quantization search, Huffman), which run for many frames in parallel, and short serial steps in frame order.

It's the successor to fpMP3Enc (2008): https://hydrogenaudio.org/index.php/topic,73790.msg649414.html

How it's built: https://www.thinkmeta.com/concurrenttasks/task-based-programming/ctlame

Source (LGPL), binaries for Windows/Linux x64, benchmarks: https://github.com/ThinkMeta-com/ThinkMeta.ConcurrentTasks.Samples/tree/main/ctLame

Numbers from other CPUs welcome.


r/compression • • 8d ago

QLIC Lite 1.0 release - JXL density at 41x the speed

Thumbnail qlic.pages.dev
8 Upvotes

QLIC Lite is a lossless codec and these were single threaded on a 9950x3d on logical CPU 2.

QLIC Lite on average encoded at 75.67 MP/s and decoded on average at 247.81MP/s. Across the entire corpus it gets a total file size at about JXL effort 7 density. JXL e7 was 0.111% larger on the 3200 image benchmark and funnily enough, 0.002% larger on the smaller 2400 image benchmark for the RGB codecs. JXL e7 encoded at 1.83 MP/s and decoded at 10.57 MP/s. Libpng effort 1 encoded at 42.67 MP/s and decoded at 123.78 MP/s.

That makes QLIC Lite: 41x faster at encoding than JXL e7. 23x faster at decoding than JXL e7. And damn near exactly 2x faster at decoding than PNG (in this benchmark but still)

QLIC Lite supports up to 10-bit HDR and RGBA of course.

QLIC Lite also used less ram than JXL did overall in my testing.

I'd like if you guys could test out QLIC Lite, tell me of any glitches, independent benchmarks, oh and especially Linux, I couldn't test on a real Linux machine, I know, I know, not a real engineer I don't use Linux, but anyway. Anyone with a Linux machine I'd love if you could rip apart my codec to shreds and tell me what happens so I can hopefully fix it.

I'll also warn anyone on older machines you WILL get different results if your device is too old for avx2. It'll need to fallback to sse4.2 and popcnt, which keeps most of the speed, but it'll lose a bit of it. If your device is too old for those, I'd, admittedly not recommend QLIC Lite as much. It's still formidable overall, but, portable C isn't nearly as fast as sse4.2 with popcnt and avx2.

That's all.


r/compression • • 9d ago

A "zero-prior" context-mixing compressor

1 Upvotes

I built UCZ (v0.1.0-beta.1), a personal TypeScript research project, to explore a question: many high-performance compressors—paq8px, zstd with dictionaries, domain-specific tools—rely on built-in world knowledge such as word lists, pretrained weights, magic numbers, or format-specific preprocessors. What if a compressor is strictly forbidden any external prior knowledge and told only that “the input is a raw byte sequence”?

To test this, I defined a “9-Point Constitution” (no built-in dictionaries, pretrained tables, filename/magic-number sniffing, or format-specific preprocessing) and implemented an online context-mixing engine that discovers structure at runtime:

For tabular/vertical-text streams, it learns delimiter density and tracks row/column alignment.

For 2D binary rasters, it searches the decoded prefix for causal scanline autocorrelations—e.g., locking onto the 216-byte scanline structure of the Canterbury ptt5 fax image and reaching 5.25% compression without header parsing.

For multi-channel/periodic signals, it tries de-interleaving with strides s=2–64, plus delta encoding and bit-plane decomposition.

For incompressible inputs (e.g., .png, since it may not re-inflate DEFLATE), an “error-EMA gate” freezes context training and reverts to STORE mode to avoid learning from noise.

To separate “general online learning” from “algorithmic priors,” every structural assumption is documented in PRIOR_REGISTRY.md, and two modes measure their impact.

UCZ --max includes online delimiters/column alignment, stride de-interleaving for s∈[2,64], causal 2D scanline detection, relative jump transforms, and the error-EMA freeze gate:

Canterbury Corpus (11 files): 369,447 B (13.14%; xz -9e: 17.54%)

UCI Tabular Corpus (6 files): 375,359 B (5.73%; xz -9e: 8.80%)

Complete E. coli genome: 1.951 bits/input-byte (~1.990 bits/base)

UCZ --strict / --strict-zero-prior disables ASCII character-class partitioning, relative jump transforms, 2D scan-period detection, and arithmetic delta/gradient specifications; it also tests a random permutation π(X) of the byte alphabet:

Canterbury Corpus: 375,283 B (13.35%; 1.58% higher than --max)

For structured binary data (9.H: +6.3%), tabular floating-point data (+14.5%), and 2D fax rasters (ptt5: +62.5%), these results quantify each structural operator’s gains.

Because the model tracks prequential predictive code cost (−log2 P(x_t|x_<t)) every 512 bytes, I built two utilities:

ucz inspect: a “residual microscope” showing where the online model is surprised—useful for high-entropy pockets in unknown blobs or regime shifts.

ucz ncd: a conditional-complexity dissimilarity matrix that keeps the context table “warm” across file boundaries.

Caveats: it is slow and memory-intensive—the 2.8 MB Canterbury Corpus takes ~105 s and ~1.9 GiB RAM, roughly 100× slower than xz -9e; README lists wall-clock time and peak RSS with each ratio. Even in --strict mode, exact alphabet-bijection invariance C(π(X))=C(X) holds only within an empirical ~3.4% drift, due to 24-bit hash-bucket collisions and APM quantization; details are in CONSTITUTION.md. The codebase (src/lib/codec.ts, coder.ts) evolved over ~37 iterations and is not elegant.

Specialized tools with domain priors still win in their domains (paq8px for English prose, AC2 for proteins, GeCo3 for DNA); documenting this gap was the main objective. If you have unusual binary blobs, telemetry logs, or edge-case files for round-trip integrity tests or the “microscope” tool (npm run bench:quick gives a ~10 s, 6-stream check; a local single-file Web UI via npm run build:web), I welcome bug reports, critiques, and mathematical/code suggestions.(https://github.com/no-nova/UCZ)


r/compression • • 11d ago

Windowless Random-Access LZSS for Constrained Microcontrollers

6 Upvotes

Hello r/compression
I'd like to share a project that I've been working on for the last couple of months.

On microcontrollers with only a few kilobytes of Flash and SRAM, heatshrink [1] and tamp [2] are widely used for decompressing static assets. They are small, configurable, and produce good compression ratios.

However, for random-access workflows (like reading a single entry from a config table, font, or devicetree), sliding-window decoders still require allocating the full window and sequentially decoding from the start of a block. To get small-slice random access with heatshrink or tamp, you either pay that full sequential decode cost or split the asset into small independently compressed blocks (which hurts compression ratio).

==============

blaris is a windowless LZSS format/decompressor - meaning it does not allocate a sliding window at all. This lets it match (or sometimes beat) the compression ratios of high-window heatshrink and tamp configurations while keeping total SRAM usage fixed at 104–112 B regardless of lookback range or file size.

Typical LZ77/LZSS resolves matches by copying from a RAM sliding window. blaris instead resolves matches directly inside the compressed payload, following the chain of matches backward until it lands on a literal run token.

To make bidirectional traversal fast and deterministic, tokens are split into 3 streams:

Because each control byte fixes the exact number of literal bytes or distance bits consumed, the decoder can step forward and backward across all 3 streams in lockstep.

A few optimizations make this practical:

On small random-access slices (1–32 B), blaris significantly outperforms ratio-matched, block-indexed heatshrink and tamp (e.g., >500× faster on 1 B reads at ~36% ratio on a 15.2 KiB devicetree blob). For larger sequential reads, streaming decoders overtake blaris around 64–128 B slices since blaris's work scales linearly with slice length. Testing on physical ESP32-C3FN4 quad-SPI XIP Flash also showed that Flash wait states don't disproportionately penalize backward token walking (~1.30–1.33× overhead vs. zero-wait-state simulation for slices ≥ 4 B).

Memory footprints compiled with Clang (-Os) for RV32IMC (including common adapter):

GitHub repo with the C implementation, host compressor, benchmarking suite, and full results: https://github.com/lis05/blaris

[1] https://github.com/atomicobject/heatshrink
[2] https://github.com/BrianPugh/tamp
[3] https://github.com/lis05/lzmpo

AI-enhanced post.


r/compression • • 11d ago

Mac Image Compression Comparison App

Thumbnail
reddit.com
1 Upvotes

r/compression • • 11d ago

TurboBench, the Compression Lie Detector, 100 Codecs, Daily Update

Post image
3 Upvotes

r/compression • • 13d ago

ZXC hits 1.0.0: the format is frozen

7 Upvotes

Hi all,

I posted about ZXC here a few months ago, and the feedback I got shaped a good part of what came next. So I wanted to share this one here first: 1.0.0 is out.

Quick reminder: ZXC is an LZ codec for write-once, read-many data. You compress once, at build time, and decode everywhere, so I tuned everything for decode speed.

For me, 1.0 is mostly a promise:

  • The format is frozen. A file written today will be readable by every future release. It's fully specified, with public conformance vectors.
  • The API and ABI are stable across 1.x.
  • I'm in this for the long run. Fixes and performance work will continue, without breaking either of the above.

Where it stands (Silesia, single thread, lzbench):

  • levels -1 to -6 decode 1.1x to 2.1x faster than LZ4 / LZ4HC at an equal or better ratio
  • level -7 compresses better than zstd -1 and decodes up to 3x faster

The price is compression speed: -6 and -7 are slow, and that's a choice I made. If you need fast compression, LZ4 and ZSTD are still the right tools.

It also has seekable archives, in-place decompression, dictionaries for small data, and bindings for Rust, Python, Node.js, Go and WASM. BSD-3-Clause.

What's next, and where I could use a hand:

  • SIMD for RISC-V 64 (RVV) and LoongArch 64 (LSX/LASX). I'm thinking about dedicated code paths for both, but I have no hardware to run benchmarks in CI. If you know of runners, a board farm, or any other way to get reliable numbers on these, I'm all ears.
  • Native ports in C# and Java. Not bindings, real ports. The format spec and the conformance vectors should make that doable without reading my C. If that sounds like fun to you, let's talk.

https://github.com/hellobertrand/zxc

If you try it on your own data or hardware, I'd love to see the numbers, good or bad. And thanks to everyone who commented last time.

https://libzxc.org


r/compression • • 13d ago

HALAC 1.0.0 (High Availability Lossless Audio Compression)

6 Upvotes

HALAC 1.0.0 is ready...
For details and downloads: https://github.com/Hakan-Abbas/HALAC-High-Availability-Lossless-Audio-Compression/releases/tag/1.0.0

AMD Ryzen 5 9600X - Single Thread Results

KARNOKKOROK 01.wav (Thank you Marco - forart.eu)
Single track · 32 channels · 32-bit float · 48 kHz · 3.96 GB

Version    Level    Size (%)    Size (MB)    Encoding (s)    Decoding (s)
HALAC 0.6.6    0    36.90       1,460.10       8.31          8.27
HALAC 0.6.6    1    35.99       1,424.17       7.34          7.71
HALAC 0.6.6    2    34.23       1,354.48       7.63          8.48
HALAC 0.6.6    3    33.46       1,323.81       8.12          8.94
HALAC 0.6.6    4    33.37       1,320.44      10.08         11.13
HALAC 0.6.6    5    33.38       1,320.86      10.79         11.50

HALAC 1.0.0    0    34.25       1,354.97       4.17          3.84
HALAC 1.0.0    1    33.84       1,339.01       4.58          4.05
HALAC 1.0.0    2    31.69       1,253.95       5.03          4.58
HALAC 1.0.0    3    31.64       1,251.68       7.61          4.80
HALAC 1.0.0    4    31.61       1,250.70       8.63          4.88
HALAC 1.0.0    5    31.59       1,250.08       9.26          4.97
HALAC 1.0.0    6    31.54       1,248.07      12.00          5.17

BIP TUNIA (Thank you Michael)
6 tracks · 24-bit · 2 ch · 5.62 GB · 44.1 kHz

Version    Level    Size (%)    Size (MB)    Encoding (s)    Decoding (s)
HALAC 0.6.6    0    76.23       4,283.02       5.20          6.58
HALAC 0.6.6    1    76.00       4,269.93       5.96          7.18
HALAC 0.6.6    2    73.52       4,130.85       6.47          8.62
HALAC 0.6.6    3    72.62       4,080.34       7.41          9.67
HALAC 0.6.6    4    72.19       4,056.35      10.07         12.55
HALAC 0.6.6    5    72.05       4,047.99      12.42         13.27

HALAC 1.0.0    0    75.72       4,254.41       4.84          6.07
HALAC 1.0.0    1    74.57       4,189.79       5.21          6.56
HALAC 1.0.0    2    72.29       4,061.91       6.40          7.51
HALAC 1.0.0    3    72.07       4,049.44       7.94          8.43
HALAC 1.0.0    4    71.63       4,024.64      10.99          9.76
HALAC 1.0.0    5    71.54       4,019.36      13.09          9.78
HALAC 1.0.0    6    70.94       3,985.77      23.77         11.71

YURI KORZUNOV
6 tracks · 24-bit · 2 ch · 192 kHz · 1.90 GB

Version    Level    Size (%)    Size (MB)    Encoding (s)    Decoding (s)
HALAC 0.6.6    0    56.61     1,077.27       1.80          2.20
HALAC 0.6.6    1    43.24       822.74       1.92          2.48
HALAC 0.6.6    2    32.38       616.23       2.09          2.96
HALAC 0.6.6    3    28.87       549.35       2.32          3.23
HALAC 0.6.6    4    27.47       522.65       3.90          4.21
HALAC 0.6.6    5    27.17       517.07       4.40          4.44

HALAC 1.0.0    0    56.08     1,067.16       1.97          2.08
HALAC 1.0.0    1    42.43       807.32       1.77          2.67
HALAC 1.0.0    2    27.00       513.71       2.05          2.46
HALAC 1.0.0    3    24.96       474.89       3.23          2.82
HALAC 1.0.0    4    22.98       437.24       5.82          3.59
HALAC 1.0.0    5    22.97       437.12       6.36          3.58
HALAC 1.0.0    6    22.42       426.57      14.02          3.85

AMVIZO 5.1
20 tracks · 16-bit · 48 kHz · 5.1 channels · 2.77 GB

Version    Level    Size (%)    Size (MB)    Encoding (s)    Decoding (s)
HALAC 0.6.6    0    48.90       1,355.75       3.05          3.57
HALAC 0.6.6    1    49.62       1,375.89       3.56          3.97
HALAC 0.6.6    2    45.59       1,264.12       3.80          4.97
HALAC 0.6.6    3    43.09       1,194.70       4.32          5.62
HALAC 0.6.6    4    42.81       1,187.06       6.44          7.38
HALAC 0.6.6    5    42.60       1,181.17       7.38          7.85

HALAC 1.0.0    0    48.21       1,336.80       2.96          3.15
HALAC 1.0.0    1    47.34       1,312.52       3.06          3.55
HALAC 1.0.0    2    43.32       1,201.27       3.92          4.21
HALAC 1.0.0    3    38.75       1,074.37       6.38          4.75
HALAC 1.0.0    4    38.05       1,055.11       8.34          5.62
HALAC 1.0.0    5    37.81       1,048.41      10.00          5.49
HALAC 1.0.0    6    37.84       1,049.22      15.25          5.84

r/compression • • 14d ago

I built a lossless compressor for GGUF files: 9 Hub models tested, 8.66% smaller overall

Thumbnail gallery
0 Upvotes

Useful if you archive a lot of models, share them over slow or metered connections, or keep them on a phone or small SSD.


r/compression • • 14d ago

ZyFlate DEFLATE benchmark v2.0.0 — binary included, run it on your own data

2 Upvotes

I've been working on a DEFLATE compressor/decompressor called ZyFlate. I built a benchmark that tests it head-to-head against two widely deployed DEFLATE implementations and I'd like people who know compression to look at the numbers.

Full disclosure: I'm a solo developer, I use AI tools in my workflow, and I'm new to this community. No connections, no team. For all I know this could be some cruel hallucination and I'm completely wrong about everything.

But the benchmark is real. Download it. Run it on your own files.

Decompression throughput (100 MB test data, same compressed stream, all three decompress it):

LevelZyFlate MB/sLibrary A MB/sLibrary B MB/s
L11,091380890
L61,021387867
L121,2914741,044

Library A and B are two of the most widely deployed DEFLATE implementations. The benchmark output describes each one.

Parallel compress + decompress (2 threads):

Level1-core compress2-core compress1-core decompress2-core decompress
L1180 MB/s337 MB/s (1.9x)1,112 MB/s1,684 MB/s (1.5x)
L662 MB/s105 MB/s (1.7x)1,286 MB/s1,985 MB/s (1.5x)
L121.3 MB/s2.0 MB/s (1.6x)1,037 MB/s1,735 MB/s (1.7x)

Library A and B have no parallel API. ZyFlate splits input into independent 1 MiB chunks. All parallel outputs verified byte-exact against single-core.

Download:

https://github.com/GodlessVVanderer/slain-releases/releases/tag/zyflate-bench-v2.0.0

Windows x86-64. Supply any file as input (10+ MB recommended).

This isn't the finished version. The compressor is still being worked on — these numbers are mostly about the decompressor. There's an update coming that I think will change the conversation. If this doesn't impress you, the next one will.

I'm building this as part of something larger. If you work in compression and want to talk, my inbox is open.

AGPL-3.0-only. Commercial licensing available — joshdaem@gmail.com.


r/compression • • 14d ago

How to compress images and videos while maintaining metadata?

1 Upvotes

hi i hope everyone is doing good.
a few months back i successfully downloaded all my snapchat videos and images and manually added their dates, however i want to be able to save them on free cloud storages i have like dropbox, google photos, etc. but its about 20gb

i wanted to know if there’s a website or ios app that lets me bulk compress images and videos without removing their metadata, its been hard to find one that works efficiently.

any help would be appreciated!!

also any recommendations on free cloud services online would also be greatly appreciated! would like save it in multiple website since it contains a lot of my memories