Topic

Performance

Discover performance optimization trends covering profiling, caching, and resource efficiency. Our digest synthesizes concurrency patterns, memory management, and database tuning from developer communities.

What this topic tracks

  • Engineering practices and ecosystem debates
  • Tools, architecture, and implementation lessons
  • Relevant discussions from developer communities

Performance · 970 stories

Recent stories

Each story's summary, with the places it was discussed.

Summaries are written by AI from the linked sources. Open the source for full context.

20 stories

Stop Installing Libraries: 10 Browser APIs That Already Solve Your Problems

dev.to · 4 Feb

Frontend · JavaScript · Performance

This article explores ten powerful yet frequently underutilized Web APIs that enhance the capabilities of modern browsers.

It highlights essential tools such as the Structured Clone API for deep object copying, the Performance API for accurate micro-benchmarking, and the Page Visibility API for optimizing resource usage when tabs are inactive. Additionally, it covers specialized observers like ResizeObserver and IntersectionObserver, alongside advanced coordination tools like AbortController, BroadcastChannel, and Web Locks. The author emphasizes that the web platform is evolving rapidly, often providing native solutions that replace the need for heavy external libraries. While some features like the File System Access API are currently Chromium-focused, understanding these native capabilities provides developers with a significant technical edge in building high-performance, responsive web applications.

C++ std::move doesn't move anything: A deep dive into Value Categories

0xghost.dev · 9 Dec

C++ · Performance · Computer Science

In modern C++, std::move is often misunderstood; it does not physically move memory but is instead a static_cast that converts an expression into an xvalue, signaling the compiler that resources can be 'stolen' via a Move Constructor.

This article explores the critical performance implications of move semantics, highlighting common pitfalls like 'pessimization' (using std::move on return values which breaks Named Return Value Optimization), and the 'silent copy' (attempting to move from const objects). It emphasizes the necessity of the noexcept keyword in Move Constructors to maintain the strong exception guarantee in containers like std::vector. The guide also covers the 'Rule of Five,' the usage of std::exchange for idiomatic ownership transfer, and differentiates std::move from std::forward in the context of perfect forwarding. Finally, it touches on advanced topics like trivial relocation and the evolution of move semantics in C++20 and C++23.

The Strongest Sokoban Solver

healeycodes.com · 16 Nov

Algorithms · Go · Performance · Computer Science · AI Agents

Soksolv is presented as the strongest published Sokoban solver, solving more levels than rivals across the Large and Open Test Suites, including 24 world-first automated solves, while taking about 3.2× less aggregate time on shared levels.

Its Go implementation uses bidirectional search, FESS, novelty search, deadlock pruning, factoring, relays, and concurrent forward/backward lanes sharing positions. It stays within 15 GB and eight cores, and was developed through Claude Code with roughly 430 subagents and 15,000 vCPU-hours of research and benchmarking.

Windows 11 New Media Player Uses 3.5x More RAM, Charges for Popular Video Codecs

extremetech.com · 18 Jun

Performance · News · Operating Systems

The new Windows 11 Media Player faces backlash for high memory usage, slower load times, and paywalled codecs like HEVC.

Furthermore, recent updates removed native AC-3 support. While it replaces legacy software, performance issues and licensing costs have led users to consider third-party alternatives like VLC that provide better functionality without extra fees.

NP-Overrated

gruhn.me · 13 Aug

Algorithms · Performance · Computer Science

NP-hardness is widely misunderstood as practical impossibility.

While worst-case inputs can cause exponential blowups, real workloads often avoid them, and heuristics or improved algorithms frequently deliver optimal or scalable solutions. Dependency resolution, type checking, scheduling, Traveling Salesman, and SAT/SMT demonstrate this; Amazon reportedly solves a billion SMT problems daily. Timeouts handle failures.

Serving Qwen via AWS Lambdas for fun and 80x negative profit

noahbuilt.it · 25 Nov

Artificial Intelligence · AWS · Large Language Models · Performance · Serverless

An experiment split H2O-Lightning, a Qwen3.5-4B fine-tune, across 5,600 AWS Lambda invocations by assigning each of its 32 layers to separate 3 GB jobs and storing intermediate results in S3.

The approach parallelized 92% of the work but required 17 seconds to process 4,000 tokens. It cost $8.40 per million tokens, over 80 times Gemini Decision 1’s $0.10, showing that CPU Lambda inference is far slower and more expensive than GPU-backed hosted models.

Show HN: An agent skill that optimizes code with falsifiable hypotheses

chszlab.github.io · 23 Nov

Artificial Intelligence · Algorithms · Performance · Computer Science · AI Agents

Agentic Algorithm Engineering (AAE), a Claude Code and Codex skill from Heidelberg University, autonomously optimizes existing code through a cycle of falsifiable hypotheses, analysis, minimal Git patches, experiments, and correctness checks.

Reported results include 8.9× faster VieCut, 3.9× faster KaHIP kaffpa, and 3.0× faster Hochbaum’s pseudoflow, while preserving validated outputs or quality. Each accepted change produces a reviewable numbered patch and the session generates a PDF report; one KaHIP session ran 122 experiments and accepted 41 patches.

Retrospectively Reverse-Engineering Apple's Neural Engine

eiln.github.io · 12 Sept

Hardware · Low-Level Programming · Performance

Reverse-engineering Apple’s M1 Neural Engine reveals a fixed-function, compiler-configured dataflow accelerator: 16 MAC cores, fused activation/LUT logic, task descriptors, dedicated DMA paths, private KMem, and shared L2.

Its CNN-oriented memory hierarchy and serialized, bandwidth-limited transfers—not compute—constrain transformer decode, helping explain Apple’s shift toward integrating Neural Engine functionality into GPUs.

How close can pure FP get to C?

rtfeldman.com · 22 Oct

Performance · Programming Languages

Roc’s pure functional `roc-deflate` implementation came within single-digit performance of C’s highly optimized `libdeflate`: across 144 non-streaming Silesia benchmarks, it was 8.9% slower on an AMD Ryzen 9 3900X and 2.6% slower on an M1 MacBook Pro, while sometimes winning individual inputs.

Roc’s memory safety, purity, deterministic behavior, and restricted supply chain impose a lower performance ceiling, but compiler optimizations such as opportunistic mutation, hoisted bounds checks, compile-time lookup tables, and wrapping arithmetic narrowed the gap.

OmniJev/Flide

github.com · 9 Nov

Artificial Intelligence · Backend · Large Language Models · Performance · Python

Flide is an inference engine for Jev-style decision models that accelerates multi-question serving through exact state forking: one model state can answer several questions in one forward pass, while each answer matches asking the question alone.

It serves Jev’s `/v1/systemone` API, supports text, image, and video models including OneJev, Qwen3.5, and Gemma 4, and reports up to 9.5× faster performance than vLLM and SGLang. Session caching, batch invariance, FP8 quantization, and multi-process frontends are available.

JVM Options Explorer

chriswhocodes.com · 12 Apr

Database · Java · Performance

This table lists various Java Virtual Machine (JVM) configuration flags and options, detailing their names, associated OpenJDK versions, deprecation status, types, operating system compatibility, CPU architectures, components, and primary functional descriptions.

These flags are critical for tuning memory management, garbage collection, and Just-In-Time (JIT) compilation performance.

Python 3.15 vs Python 3.14 – performance testing

en.lewoniewski.info · 11 Oct

Performance · Python

Python 3.15.0 outperformed Python 3.14.8 in pyperformance tests on an AMD Ryzen 9 7900 desktop and an Intel Core i3-1315U mini PC running 64-bit builds on Windows 11.

Both systems showed an overall geometric-mean speedup of about 1.451×, or 31.1% less elapsed time, driven mainly by rewritten Base32, Ascii85, and Base85 implementations. Excluding six exceptional encoding results, gains were about 1.20×. Base16 and some regular-expression benchmarks slowed, so application benefits vary.

ETH-68: Ethernet Audio Interface for Linux

naturalsystems.io · 7 Oct

Hardware · Linux · Performance

ETH-68 is a 1U Linux Ethernet audio interface with six balanced inputs, eight outputs, DIN MIDI, and 48/96 kHz operation via a PCM3168A codec.

Its STM32H7 firmware emulates a netJACK1 master for JACK and supports direct PipeWire through pw-eth68. Measured round-trip latency is 3.620 ms at 48 kHz/64 samples and 1.814 ms at 96 kHz, with multiple units synchronized at near-sample alignment without added round-trip latency. Input THD+N reaches -94.8 dBFS.

The Orange Pi 6 Plus

taoofmac.com · 11 Apr

Artificial Intelligence · Hardware · Performance

The Orange Pi 6 Plus, powered by the CIX P1 SoC, offers promising hardware specs like dual 5GbE ports, a Mali G720 GPU, and a dedicated NPU.

While software support remains fragmented and requires custom OS image building and driver troubleshooting, it excels at specific edge AI tasks and ARM development, provided one tolerates higher power consumption and louder fan noise.

Th0rgal/satmux

github.com · 29 Nov

CLI · Performance · Python · Software Architecture

satmux is a zero-dependency Python 3 TCP multiplexer and HTTP/TLS relay for high-latency GEO inflight Wi-Fi.

It maintains 12 warm non-443 TCP carriers using BBR and zlib, bypasses cabin DNS and :443 middleboxes, and performs local 0-RTT stream opening plus 1-RTT ground-side DNS, TLS, redirects, and fetching. It preserves end-to-end TLS, supports SOCKS5, HTTP CONNECT, git, and gh, and reduced a measured six-origin burst from 19.13s with failures to 5.35s without failures.

GIMP Development Update

gimp.org · 16 Aug

Performance · Software Architecture · UI

GIMP reports progress toward 3.3.2 and future GIMP 3.4, highlighting a new zipped XML project format alongside continued XCF loading, Spectral Blending, expanded non-destructive editing, stronger PSD metadata and Descriptor support, native file choosers, UI and performance improvements, and bug/security fixes.

3.3.2 is not released yet; nightly builds are available, while 3.2.6 is planned.

Mathematicians still don't know the fastest way to multiply numbers

scientificamerican.com · 13 Jul

Algorithms · Performance · Computer Science

For centuries, grade-school multiplication was considered the fastest method.

In 1960, Anatoly Karatsuba disproved this by introducing a recursive algorithm, reducing complexity from O(n2) to O(n1.585). Recently, the Harvey-van der Hoeven algorithm reached O(n log n) efficiency. These breakthroughs optimize critical digital operations, significantly impacting performance in fields like cryptography and artificial intelligence.

What Changes When You Upgrade from PostgreSQL 18 to 19

rishigoomar.com · 26 Nov

Backend · Database · Performance · PostgreSQL · SQL

PostgreSQL 19 brings measurable day-to-day improvements over 18: foreign-key batch inserts were 41.1% faster, and eligible NOT IN queries were 24.5% faster in tests.

Native REPACK CONCURRENTLY reclaims space online, pg_plan_advice exposes and tests planner choices, and ON CONFLICT DO SELECT returns existing rows in one round-trip. WAIT FOR LSN helps replicas catch up before reads. Upgrade checks include extensions, removed io_workers, disabled-by-default JIT, lock settings, and logical-replication sequence synchronization.

Where it came fromHacker NewsDev.toLobstersRedditCreate a Snapbyte.dev digest and choose Performance as one of your topics.Build your digest