AI agent writes JPEG decoder in 4 hours that nearly doubles libjpeg-turbo speed

janusch_patas · x · 2026-12-06

A developer asked the Neon coding agent to build "the fastest JPEG decoder" from its underlying math. Within 4 hours, it reached nearly 2x the decoding speed of the top human-optimized libjpeg-turbo, hitting 65% of peak theoretical performance.

Benchmarks show the AVX-512 build decoding 1080p test images at 1.7-2.0x libjpeg-turbo's speed (e.g. 861.3 MP/s, 2.01x on a q85 grayscale image), with AVX2 at 1.5-1.9x.

The takeaway, as the author puts it: "You can just make ridiculous wishes" — AI agents now outperform elite human optimization work on highly specialized tasks.

Original post →

More from coding & agent

coding & agent channel →