nowfound

Life & fun · December 13, 2021

10-40% faster LZMA decoder using x86 CMOVcc

Faster LZMA decoder for x86 CPUs (patch for XZ Utils). - faster_lzma_decoder_x86.patch

10-40% faster LZMA decoder using x86 CMOVcc launched on December 13, 2021 with 205 votes, #115 of 2,707 launches that month and more than 95% of that year's launches. The site was still online in September 2026, 4 years on.

Visit gist.github.com ↗Alternativestop 4% of December 2021

In plain words

This is an optimized LZMA decoder implementation that uses x86 conditional move instructions to improve decompression speed by 10-40 percent. It is designed for developers and systems that need faster file decompression, particularly those working with LZMA-compressed files. The optimization replaces traditional branch instructions with CMOVcc operations, reducing pipeline stalls and improving CPU efficiency on x86 architecture.

written from the facts on this page · September 2026

From the sources

Search Gists Search Gists Sign in Sign up You signed in with another tab or window. Reload to refresh your session. You signed out in another tab or window. Reload to refresh your session. You switched accounts on another tab or window. Reload to refresh your session. Dismiss alert {{ message }} Instantly share code, notes, and snippets. Clone this repository at <script src=&quot;https://gist.github.com/ilyakurdyukov/f514418f3affd677e1ac408ec0c09188.js&quot;></script> Save ilyakurdyukov/f514418f3affd677e1ac408ec0c09188 to your computer and use it in GitHub Desktop. Embed Select an option Embed Embed this gist in your website. Share Copy sharable link for this gist. Clone via HTTPS Clone…from gist.github.com

Does a similar job

all alternatives →
  • Micro LZMA decoder (x86 assembly code golf)2022 · github.com · ▲56

    Micro LZMA decoder. Contribute to ilyakurdyukov/micro-lzmadec development by creating an account on GitHub.

  • misa77 - a codec that decodes 2x faster than LZ4 (at better ratios)Jul 2026 · github.com · ▲164

    I've spent the last few months working on this codec. It has the following characteristics: - SOTA decompression throughput in its ratio class - Decent ratios (comparable to LZ4 at high effort levels) - Slow compression Most of the gains can be attributed to reducing branches and making decompression very friendly to out-of-order cores, by using a smart format. Results on the tarred Silesia corpus on Intel x86-64 follow: codec decode ratio encode misa77 -0 5219 MB&#x2F;s 42.64% 54.5 MB&#x2F;s misa77 -1 4274 MB&#x2F;s 39.65% 51.2 MB&#x2F;s lz4 2505 MB&#x2F;s 47.59% 371 MB&#x2F;s lz4hc -12…

  • I wrote a Java decompiler in pure C language2025 · github.com · ▲172

    The world's fastest apk (android)/java open source decompiler - neocanable/garlic

  • ZXC – Asymmetric, +40% decode vs. LZ4 on ARM (C, BSD-3, Fuzzed)Dec 2025 · github.com · ▲28

    Hello HN, author here. I built ZXC, a lossless compression library designed specifically for "Write Once, Read Many" scenarios (Game assets, Firmware, App bundles). The Concept: Standard real-time codecs (LZ4, Snappy) are designed for symmetry. ZXC explores an asymmetric approach: it spends significantly more CPU cycles at compression time to generate a bitstream specifically structured for modern, wide-issue execution pipelines (maximizing Instruction Level Parallelism). Performance (Verified via lzbench integration): ZXC was merged into the official lzbench repository monday. ARM64 (Apple…

  • Speeding up LLM inference 2x times (possibly)2024 · asciinema.org · ▲419

    Here's a project I've been working on for the last few months. It's a new (I think) algorithm, that allows to adjust smoothly - and in real time - how many calculations you'd like to do during inference of an LLM model. It seems that it's possible to do just 20-25% of weight multiplications instead of all of them, and still get good inference results. I implemented it to run on M1&#x2F;M2&#x2F;M3 GPU. The mmul approximation itself can be pushed to run 2x fast before the quality of output collapses. The inference speed is just a bit faster than Llama.cpp's, because the rest of implementation…

  • Rapidgzip – Truly Parallel Gzip Decompression with 10 GB/s2023 · github.com · ▲35

    I have posted a much earlier version of this over a year ago [0]. Since then a lot has changed. Obviously, the name has changed. This happened for the paper publication [1]. I have also optimized the speed, integrated ISA-L for special cases, limited the compression-ratio-dependent maximum memory consumption, and finally added parallelized CRC32 computation, which adds ~5% overhead no matter the number of cores used. At this point, I am leaning towards calling it production-ready although there are still many ideas for improvements. Redoing the benchmarks of the older Show HN, would look…

More life & fun this month

the category →

Source: Show HN post ↗

Launched alongside, December 2021

the whole month →
  • Powerful enhanced experience for Twitter

    Life & fun · 2021 · blackmagic.so

  • A beautiful, clean, modern web UI for Wikipedia. Enhance your Wikipedia experience with a redesigned look, new features and customization.

    Life & fun · 2021 · modernwiki.app

  • thirdweb▲897

    Build web3 apps and games, easily

    Dev tools · 2021 · thirdweb.com

  • Your favorite emojis. To scale (more or less).

    Life & fun · 2021 · javier.xyz

  • Alfread▲641

    Actually read articles saved for later

    Work · 2021

  • A partial buyout marketplace free for bootstrapped founders

    Commerce · 2021 · flippa.com