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

A 40-line fix eliminated a 400x performance gap

questdb.com · 13 Jan

Java · Linux · Performance

A significant performance optimization has been implemented in OpenJDK, specifically affecting the ThreadMXBean.getCurrentThreadUserTime() method on Linux.

Previously, this method relied on a costly procedure of opening and parsing /proc/self/task/stat files to retrieve user CPU time. This legacy approach suffered from high overhead due to multiple system calls, VFS dispatch, and buffer management. By replacing this mechanism with a direct call to clock_gettime() using a specialized Linux-specific clock ID bitmask, developers achieved a 30x to 400x performance improvement. The new implementation leverages a long-standing but obscure Linux ABI feature that encodes clock types directly into the clockid_t. This change underscores the value of revisiting legacy code and utilizing kernel-specific optimizations over generic POSIX implementations to eliminate significant performance bottlenecks in high-concurrency environments.

Fearless SIMD v1.0 is here

linebender.org · 22 Sept

Low-Level Programming · Performance · Programming Languages

Fearless SIMD v1.0 brings safe, performant SIMD to stable Rust without ad-hoc `unsafe`.

It supports portable and hardware-width vectors, multiversioning through the `#[simd]` macro, and safe access to platform intrinsics with no performance ceiling. Designed for stability, it offers three years of security updates, future extensibility, and complements rather than replaces `std::simd`.

Radeon RX 10800 XT can outperform the RTX 5090 by 15-25% in 4K gaming and local AI

en.gamegpu.com · 19 Sept

Artificial Intelligence · Hardware · Performance

Leaks suggest AMD’s rumored Radeon RX 10800 XT, based on RDNA 5, could feature 200 CUs, a 512-bit GDDR7 interface, 48 GB VRAM, and 3.1–3.4 GHz clocks.

The article estimates 15–25% higher 4K raster performance than RTX 5090 and strong local AI capacity, while RTX 6090 should retain the lead in path tracing, CUDA, and Tensor workloads.

Show HN: Building a web server in assembly to give my life (a lack of) meaning

github.com · 10 May

Low-Level Programming · Performance · Open Source

ymawky is a lightweight, static-file web server written entirely in hand-crafted ARM64 assembly for macOS.

It uses a fork-per-connection model and functions without libc. While focused on macOS, it features atomic PUT operations, path traversal protection, MIME type detection, and configurable security timeouts to mitigate Denial of Service risks.

Measuring Input Latency on Linux: X11 vs. Wayland, VRR, and DXVK

marco-nett.de · 13 Jul

Hardware · Linux · Performance

A developer analyzed Linux gaming input latency by building a custom hardware sensor.

Findings show that XWayland significantly increases lag, while native Wayland is nearly on par with X11. VRR and the dxvk-low-latency pacer consistently reduce end-to-end system latency and stabilize frame times, providing tangible performance benefits for competitive gaming on Linux.

Blog ran on Ubuntu 16.04 for 10 years. I migrated it to FreeBSD

crocidb.com · 21 May

Linux · Performance · Serverless

The author migrated their decade-old Ubuntu VPS to a new Hetzner FreeBSD server, utilizing Bastille and Jails for virtualized site management.

The transition improved server performance, security, and cost. Despite initial configuration hurdles, the new stack demonstrates significantly higher request capacity and stable latency under heavy load compared to the previous aging infrastructure.

SIMD-accelerated computer vision on a $2 microcontroller

shraiwi.com · 25 Oct

Algorithms · Computer Vision · Hardware · Low-Level Programming · Performance

A SIMD-accelerated FAST feature detector for the $2 ESP32-S3 uses its 128-bit SIMD instructions to process QVGA frames in about 6 ms and achieve roughly 220% higher throughput, rising from 5.1 MP/s to 11.2 MP/s.

The implementation handles the chip’s lack of misaligned reads, signed-only eight-bit comparisons, and saturating arithmetic using register-slice extraction and XOR-based unsigned-to-signed conversion, enabling real-time 30 fps VGA computer vision.

Bare Metal Qwen

github.com · 25 Nov

Artificial Intelligence · Large Language Models · Low-Level Programming · Performance · Operating Systems

Phase 2 delivers a standalone x86-64 bare-metal OS written in pure assembly that runs Qwen/Qwen3-0.6B without Linux, Windows, C, Rust, or libc.

The stripped Multiboot 1 kernel is 24,252 bytes, boots to interactive multi-turn chat in 74–94 ms, binds a 614 MiB model zero-copy from RAM, and retains a persistent KV-cache. It achieves byte-for-byte parity with Phase 1 across 1–32 vCPUs, reaching 134.9 tok/s on QEMU KVM and 55.4 tok/s on Proxmox VE.

New 10 GbE USB adapters are cooler, smaller, cheaper

jeffgeerling.com · 24 Apr

Hardware · Performance

New RTL8159-based 10 GbE USB 3.2 adapters provide a cooler, smaller, and cheaper alternative to bulky Thunderbolt 10G adapters.

While performance depends heavily on the specific USB port speed, these adapters offer excellent value for RJ45 networks. However, users should verify their device's USB 3.2 Gen 2x2 compatibility to ensure full 10 Gbps speeds.

Scriptc by Vercel: TypeScript-to-Native compiler, no JavaScript engine in binary

github.com · 22 Jul

Performance · Programming Languages · TypeScript

scriptc is a TypeScript compiler that generates small, fast, dependency-free native executables by transpiling directly to machine code instead of using Node.js or a JavaScript engine.

It offers massive improvements in startup time, memory footprint, and binary size, while maintaining full compatibility with JavaScript semantics and TypeScript's type-checked system.

The Xteink X4 E-Ink Reader

blog.omgmog.net · 23 Jun

Hardware · Performance · Open Source

The Xteink X4 is a compact, £40 e-ink reader.

While stock firmware is basic, the device shines when flashed with custom firmwares like Papyrix or Inx, which add advanced typography, Calibre sync, and extended format support. Its extreme portability and performance make it a superior, distraction-free alternative to bloated Android-based e-ink tablets.

Flip Fluid on Flip Dots

mitxela.com · 26 Sept

Algorithms · Hardware · Performance

mitxela built a large interactive flipdot display running a FLIP fluid simulation for EMF2026.

Reclaimed panels were modified with custom KiCad driver boards, H-bridge chips, capacitors, CH32V003 controllers, RS485 distribution, and high-current power systems. After extensive soldering and mechanical work, eight panels produced fast, seamless, tactile, and audible fluid motion controlled by a joystick.

FFmpeg 8.1

ffmpeg.org · 17 Mar

Hardware · Performance · Open Source

FFmpeg is a cross-platform multimedia framework for recording, converting, and streaming audio and video.

Recent updates including versions 8.1, 8.0, and 7.1 introduce Vulkan-based hardware acceleration, native VVC/H.266 and xHE-AAC decoders, and improved multi-threaded processing. The project continues to modernize its infrastructure, enhance API stability, and benefit from Sovereign Tech Fund support.

Big Data on the Cheapest MacBook

duckdb.org · 11 Mar

Database · macOS · Performance

This benchmark analyzes the entry-level MacBook Neo's performance on big data workloads using DuckDB.

Despite having only 8GB of RAM and an A18 Pro chip, the laptop excelled in cold-run DuckDB tests against cloud instances due to its local SSD. While capable of handling TPC-DS benchmarks, limited disk I/O and memory make it better for lighter local tasks.

Debunking "Faster than Rust": Malicious Benchmarks in Tov

blog.fyralabs.com · 22 Oct

Performance · Programming Languages · Rust

Tov’s claim of outperforming Rust is undermined by benchmarks that allegedly handicap the Rust implementations.

Tests of `bigint_fib`, `dispatch`, and `map_insert` found no consistent Tov advantage: optimized Rust matched or beat Tov. The `dispatch` comparison used costly dynamic dispatch in Rust, while `map_insert` used slower `std::collections::HashMap` instead of `ahash`; `bigint_fib` results were not reproducible. Because Tov transpiles TypeScript to C, the analysis argues its design cannot meaningfully exceed Rust or C.

Postgres LISTEN/NOTIFY actually scales

dbos.dev · 24 Jul

Database · Performance · PostgreSQL

Postgres LISTEN/NOTIFY is often criticized for scalability issues caused by a global exclusive lock during commits.

By buffering notifications and batching them, developers can bypass this serialization bottleneck. This approach enables high-throughput, low-latency streaming—achieving 60K writes per second while maintaining millisecond latency—without sacrificing system reliability or durability.

Mojo 1.0 Beta

mojolang.org · 8 May

Artificial Intelligence · Performance · Programming Languages

Mojo is a modern, AI-native programming language designed to combine Python's syntax with C++-level performance.

It features memory safety, CPU and GPU flexibility without vendor lock-in, and seamless Python interoperability. The project aims to bridge the gap between high-level ease of use and low-level hardware optimization, with plans for full open-source availability by 2026.

Peerweb: Decentralized website hosting via WebTorrent

peerweb.lol · 30 Jan

Blockchain · Performance · Open Source

PeerWeb is a decentralized website hosting platform that leverages WebTorrent technology to distribute content across a peer-to-peer network.

By removing the dependency on centralized servers, the platform ensures that websites are censorship-resistant and maintain high availability through community seeding. Users can easily host sites by dragging and dropping folders, which generates a unique torrent hash. PeerWeb includes advanced features like smart caching for improved performance, debug modes for developer troubleshooting, and security measures integrated via DOMPurify. Its architecture represents a significant shift toward a decentralized web, where magnet links and trackers replace traditional hosting infrastructures.

When 'if' slows you down, avoid it

easylang.online · 4 May

C · Low-Level Programming · Performance

Branch mispredictions hinder CPU performance by forcing pipeline restarts.

By replacing conditional branches with branchless alternatives—such as using conditional increment instructions—developers can maintain linear control flow. Although branchless code may involve redundant memory writes, the performance gains on modern architectures are significant when dealing with unpredictable, large datasets.

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