惯性聚合 高效追踪和阅读你感兴趣的博客、新闻、科技资讯
阅读原文 在惯性聚合中打开

推荐订阅源

博客园_首页
The GitHub Blog
The GitHub Blog
美团技术团队
Know Your Adversary
Know Your Adversary
CTFtime.org: upcoming CTF events
CTFtime.org: upcoming CTF events
The Register - Security
The Register - Security
Stack Overflow Blog
Stack Overflow Blog
Attack and Defense Labs
Attack and Defense Labs
G
Google Developers Blog
I
InfoQ
博客园 - 司徒正美
T
Troy Hunt's Blog
Google DeepMind News
Google DeepMind News
J
Java Code Geeks
MongoDB | Blog
MongoDB | Blog
博客园 - 聂微东
A
About on SuperTechFans
云风的 BLOG
云风的 BLOG
S
Security Affairs
M
MIT News - Artificial intelligence
Simon Willison's Weblog
Simon Willison's Weblog
K
KPMG report finds enterprise disconnect between AI and its ROI | CIO
T
Tailwind CSS Blog
量子位
Vercel News
Vercel News
月光博客
月光博客
V
Vulnerabilities – Threatpost
N
News and Events Feed by Topic
Hugging Face - Blog
Hugging Face - Blog
酷 壳 – CoolShell
酷 壳 – CoolShell
L
LangChain Blog
D
Darknet – Hacking Tools, Hacker News & Cyber Security
L
LINUX DO - 最新话题
F
Full Disclosure
The Hacker News
The Hacker News
Hacker News: Ask HN
Hacker News: Ask HN
T
Tor Project blog
A
Arctic Wolf
Application and Cybersecurity Blog
Application and Cybersecurity Blog
Forbes - Security
Forbes - Security
IT之家
IT之家
Apple Machine Learning Research
Apple Machine Learning Research
B
Blog
Exploit-DB.com RSS Feed
Exploit-DB.com RSS Feed
Y
Y Combinator Blog
GbyAI
GbyAI
B
Blog RSS Feed
V
Visual Studio Blog
T
The Blog of Author Tim Ferriss
F
Fortinet All Blogs

Hacker News

Introducing Claude Opus 4.7 Qwen Studio The Future of Everything is Lies, I Guess: Where Do We Go From Here? GitHub - SeanFDZ/macmind: Single-layer transformer in HyperTalk for the classic Macintosh Show HN: Agent-cache – Multi-tier LLM/tool/session caching for Valkey and Redis Moving a large-scale metrics pipeline from StatsD to OpenTelemetry / Prometheus GitHub - Nightmare-Eclipse/RedSun: The Red Sun vulnerability repository GitHub - SethPyle376/hiraeth: Local AWS emulator focused on fast integration testing, with SQS support, SQLite-backed state, and a debug-friendly web UI. GitHub - macOS26/Agent: Any AI, replaces Claude Code, Cursor, OpenClaw. Over 18 LLM providers (Claude, OpenAI, Gemini, Ollama, Zai, HF, Qwen) wired into a native Mac app that writes code, builds Xcode projects, bumps versions, manages git, automates Safari, use AppleScript, JS or Accessibility, extend Agent! w/ MCP Servers, run tasks from your iPhone via Messages. YouTube now lets you turn off Shorts I Made a Terminal Pager Burgers | マクドナルド公式 Commands — HackerNews CLI documentation ChatGPT for Excel PiCore - Raspberry Pi Port of Tiny Core Linux Live Nation illegally monopolized ticketing market, jury finds Google Broke Its Promise to Me. Now ICE Has My Data. Founding Engineer at Adaptional | Y Combinator CRISPR takes important step toward silencing Down syndrome’s extra chromosome GitHub - saffron-health/libretto: The AI toolkit for building reliable browser automations US v. Heppner (S.D.N.Y. 2026) no attorney-client privilege for AI chats [pdf] Unexpected €54k billing spike in 13 hours: Firebase browser key without API restrictions used for Gemini requests Retrofitting JIT Compilers into C Interpreters IPv6 – Google The Accursèd Alphabetical Clock Cybersecurity Looks Like Proof of Work Now Fragments: April 14 Cal.com Goes Closed Source: Why AI Security Is Forcing Our Decision | Cal.com - Scheduling Software for Online Bookings Laravel raised money and now injects ads directly into your agent When moving fast, talking is the first thing to break Too much Discussion of the XOR swap trick – Heather Cafe Introduction to Spherical Harmonics for Graphics Programmers The Grand Line Building a Z-Machine in the worst possible language High-Level Rust: Getting 80% of the Benefits with 20% of the Pain GitHub - duguyue100/midnight-captain: Inspired by Midnight Commander, tailored to my taste. How to build a `git diff` driver · Jamie Tanna | Software Engineer Center for Responsible, Decentralized Intelligence at Berkeley The Local Universe’s Expansion Rate Is Clearer Than Ever, but Still Doesn’t Add Up - A new synthesis of astronomical measurements confirms a persistent mismatch that could point to physics beyond current models The air throughout our homes is infused with microplastics. But there are things you can do to breathe less of them The disturbing white paper Red Hat is trying to erase from the internet – OSnews The Future of Everything is Lies, I Guess: Annoyances ‘Abhorrent’: the inside story of the Polymarket gamblers betting millions on war Productive procrastination — Max van IJsselmuiden maps, territory and LMs 447 Terabytes per Square Centimetre at Zero Retention Energy: Non-Volatile Memory at the Atomic Scale on Fluorographane Show HN: Pardonned.com – A searchable database of US Pardons 20 Years on AWS and Never Not My Job The Seasons are Wrong Artemis II crew splashes down near San Diego after historic moon mission We gave an AI a 3 year retail lease in SF and asked it to make a profit | Andon Labs How a dancer with ALS used brainwaves to perform live On filing the corners off my MacBooks Installing every* Firefox extension OpenClaw’s memory is unreliable, and you don’t know when it will break Steve Blank Nowhere Is Safe Chimpanzees in Uganda locked in vicious 'civil war', say researchers watgo - a WebAssembly Toolkit for Go linux/Documentation/process/coding-assistants.rst at master · torvalds/linux GitHub - callumlocke/json-formatter: Makes JSON easy to read. Founding Product Engineer at Bild AI | Y Combinator A compelling title that is cryptic enough to get you to take action on it GitHub - Keychron/Keychron-Keyboards-Hardware-Design: Industrial design files for Keychron keyboards and mice. 100+ models with CAD assets in STEP, DXF, DWG, and PDF. Source-available, with commercial use allowed for original compatible accessories within the license terms. [ANNOUNCE] WireGuardNT v0.11 and WireGuard for Windows v0.6 Released 1D-Chess Helium Is Hard to Replace Cooperative Vectors Introduction | Evolve Keeping a Postgres queue healthy — PlanetScale Our response to the Axios developer tool compromise Do Americans read print books, e-books or audiobooks more? The Zettelkasten Method in Obsidian: A Practical Setup Guide Artemis II Is Competency Porn and We Are Starving For It WeakC4 Flight Viz — Cockpit View A Mexican surveillance giant you’ve never heard of is now watching the U.S. border Surelock: Deadlock-Free Mutexes for Rust RISC-V 101 – what is it and what does it mean for Canonical? | Ubuntu The Problem That Built an Industry How Much Linear Memory Access Is Enough? | Solidean Investigating Split Locks on x86-64 Simplest hash functions Sybilproof reputation mechanisms (2005) [pdf] What is a property? How Complex is my Code? Static code analysis in Kotlin — tools overview Toffoli gates are all you need PGLite evangelism dcmake: a new CMake debugger UI Clojure on Fennel part one: Persistent Data Structures Fragments: April 2 Python Release Python install manager 26.1 The Life and Death of the Book Review - Liberties Introducing Database Traffic Control — PlanetScale Bitcoin miners are losing $19,000 on every BTC produced as difficulty drops 7.8% God sleeps in the minerals Building slogbox Apple Silicon and Virtual Machines: Beating the 2 VM Limit Who was “Not Even Wrong” first? Pokemon Evolution Vs Darwinian Evolution The APL Programming Language Source Code
Hellishly Slow Level 13 DEFLATE Compression
Kirill A. Korinsky · 2026-06-23 · via Hacker News

Abstract

DEFLATE level 13 is a deliberately impractical libdeflate compression level: the output remains standard DEFLATE, while the encoder spends far more time searching parse, Huffman, and block split choices. On Silesia it saves 86'990 bytes, 0.134%, over level 12 and runs 56.4x slower; this cost is acceptable only when data is compressed once and distributed many times.

Why DEFLATE

DEFLATE remains worth optimising because its decoders are already everywhere: HTTP content encoding, ZIP archives, PNG internals, software distribution, backup tools, and embedded formats still use the same LZ77 plus Huffman design. The decoder contract is fixed, but the encoder still chooses matches, block boundaries, and Huffman tables; better choices improve size without changing compatibility.

The baseline is libdeflate level 12, one of the strongest practical DEFLATE encoders. The level 13 implementation was contributed upstream as pull request.

Level 13 Mechanics

Level 13 keeps libdeflate’s near optimal parser, but makes its choices more expensive. It searches the full 32 KiB DEFLATE window, permits 15 optimisation passes, and applies static Huffman optimisation to blocks up to 50'000 input bytes. No format extension is involved.

For text like data, level 13 delays block size commitment. It samples up to 64 KiB from the current block start; if the sample contains no NULL byte and at most 97 distinct byte values, the soft block size rises from 300'000 to 1'000'000 bytes. The assumption is simple: a stable byte distribution lets one Huffman table cover more data.

The parser broadens the minimum cost search. It can choose the cheapest offset for each match length, estimate initial Huffman costs from literal and match length statistics, estimate offset slot frequencies from cached matches, and compare measured dynamic Huffman cost against static Huffman and literal only encodings.

Block splitting is also delayed. The compressor stores up to nine split candidates with parser state, then scores the full block and a bounded shortest path over candidate intervals. A single split can win on cost; a multi split path must beat the full block by at least 512 bits. The selected parse is cached for final flushing.

The slowness is bounded. Search passes, split candidates, and block sizes are capped, so level 13 cannot enter an unbounded optimisation loop like turtledeflate or broader file optimizers such as ECT.

Regression Policy

Development used a zero compression regression policy against the Silesia corpus: many approaches were tried, but only changes that strictly decreased at least one compressed file, without increasing any other compressed file, survived into the final level 13 configuration.

The Silesia corpus is small enough for repeated development, but mixed enough to punish single file tuning: it contains text, binaries, databases, images, and structured data.

Silesia Results

libdeflate level 12 versus level 13 on Silesia
filelevel 12 size / timelevel 13 size / timesize difftime diff
dickens3'688'552 / 1'289 ms3'684'671 / 83'512 ms-3'881 (-0.105%)+82'223 (+6378.8%)
mozilla18'267'490 / 4'959 ms18'235'120 / 110'754 ms-32'370 (-0.177%)+105'795 (+2133.4%)
mr3'448'571 / 1'627 ms3'443'723 / 16'260 ms-4'848 (-0.141%)+14'633 (+899.4%)
nci2'766'224 / 7'935 ms2'758'044 / 673'648 ms-8'180 (-0.296%)+665'713 (+8389.6%)
ooffice2'998'130 / 424 ms2'995'604 / 8'676 ms-2'526 (-0.084%)+8'252 (+1946.2%)
osdb3'642'347 / 798 ms3'641'341 / 4'942 ms-1'006 (-0.028%)+4'144 (+519.3%)
reymont1'702'796 / 1'005 ms1'699'494 / 81'839 ms-3'302 (-0.194%)+80'834 (+8043.2%)
samba5'135'662 / 2'889 ms5'122'812 / 141'227 ms-12'850 (-0.250%)+138'338 (+4788.4%)
sao5'255'575 / 333 ms5'255'358 / 1'687 ms-217 (-0.004%)+1'354 (+406.6%)
webster11'565'754 / 6'452 ms11'555'293 / 475'196 ms-10'461 (-0.090%)+468'744 (+7265.1%)
x-ray5'754'248 / 305 ms5'748'141 / 3'276 ms-6'107 (-0.106%)+2'971 (+974.1%)
xml633'760 / 1'104 ms632'518 / 69'504 ms-1'242 (-0.196%)+68'400 (+6195.7%)
total64'859'109 / 29'120 ms64'772'119 / 1'670'521 ms-86'990 (-0.134%)+1'641'401 (+5636.7%)

Level 13 saves 86'990 bytes across the corpus, a 0.134% reduction, and adds 1'641'401 ms of runtime. The strongest relative result is nci at 0.296%; sao changes by only 0.004%.