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

Why we write our own C and C++ inference engines

localai.io · 31 Jul

C · C++ · Performance

LocalAI develops custom C and C++ engine ports to replace heavy Python dependencies.

These ports offer small binaries with predictable memory usage and near-identical performance to upstream implementations. By prioritizing numerical parity through rigorous testing before optimization, the team creates drop-in, efficient replacements for models where Python dependencies are prohibitive or unnecessarily complex for production deployment.

Linux 7.0 Broke PostgreSQL: The Preemption Regression Explained

read.thecoder.cafe · 29 Apr

Linux · Performance · PostgreSQL

Linux 7.0 shifted to PREEMPT_LAZY, causing a significant performance regression in PostgreSQL on high-vCPU systems.

Minor page faults occurring while holding a spinlock lead to excessive preemption, stalling concurrent processes. Administrators can mitigate this by enabling Huge Pages to reduce page fault frequency and minimize TLB overhead, restoring expected performance levels.

Apple's intentional crippling of Mobile Safari

pwa.gripe · 22 Mar

Mobile · Performance · Computer Science

This comparison highlights the disparity in Progressive Web App (PWA) feature support between Chrome on Android and Mobile Safari on iOS.

Chrome offers extensive hardware integration and advanced API capabilities, whereas Safari remains more restricted, limiting the cross-platform potential for developers building sophisticated web-based mobile applications.

F# 10

devblogs.microsoft.com · 4 Feb

Performance · Programming Languages · Computer Science

F# 10 has been released alongside .NET 10 and Visual Studio 2026, focusing on language refinement, ergonomic improvements, and compiler performance.

Key features include scoped warning suppression using #nowarn and #warnon, allowing for granular control over compiler diagnostics. The update also introduces access modifiers for auto property accessors, enabling publicly readable but privately mutable states. Performance gains are achieved through ValueOption support in optional parameters to reduce heap allocations and a new type subsumption cache that speeds up type checking. Additionally, computation expressions now support tail-call optimizations and simplified type annotation syntax. The release further streamlines development with better trimming defaults and a preview of parallel compilation to reduce build times.

Differential Heuristics

redblobgames.com · 8 Aug

Algorithms · Performance · Computer Science

The author explains how Google Maps achieved fast world-scale route recalculation, focusing on differential heuristics—an optimization for A* pathfinding.

After years of failed tutorial attempts, experimentation clarified the concept: heuristic and correct-direction arrows, plus interactive visualizations showing where the optimization helps. The resulting guide is now released, though further improvements remain.

Your code is fast – if you're lucky

tiki.li · 11 Jul

C · Performance · Programming Languages

Optimizing a branchless Quicksort implementation in C revealed that coding style significantly impacts compiler optimization.

By replacing explicit pointer-based assignments with compact idioms, Clang triggers the generation of branch-free instructions like CMOVE/CSEL, resulting in a 6x performance increase—outperforming std::sort by nearly twice—while GCC remains limited to branch-based code.

Port React Compiler to Rust

github.com · 10 Jun

Artificial Intelligence · Performance · Rust

React Compiler is being ported to Rust to improve performance.

This experimental, community-ready project mimics the TypeScript compiler's architectural logic, focusing on Babel-like ASTs and efficient HIR representation. Early tests show significant speed improvements, and the team is collaborating with OXC and SWC maintainers to standardize API integrations.

PHP 8.6 Closure Optimizations

wiki.php.net · 14 Apr

Performance · PHP · Programming Languages

The PHP 8.6 RFC proposes two performance optimizations for closures: automatic static inference for closures not using $this to prevent memory reference cycles, and caching for stateless closures.

These changes aim to improve application performance and reduce memory usage, despite minor backward-incompatible changes regarding reflection and object lifecycle behavior.

Building Your Own Efficient uint128 in C++

solidean.com · 1 Feb

C++ · Performance · Software Architecture

This technical guide details the implementation of a custom, fixed-width uint128 data type in C++ using two 64-bit limbs.

The author emphasizes performance and predictability over abstraction, demonstrating how to use x64 hardware intrinsics like _addcarry_u64, _subborrow_u64, and _mulx_u64 to match the efficiency of builtin compiler types. By mapping directly to processor instructions such as ADC and SBB, the implementation achieves optimal assembly output. The post highlights the advantages of fixed-width arithmetic over dynamic big-integer libraries for performance-critical applications like geometry and numerics, where memory traffic and branching must be minimized. It also provides a foundation for extending these patterns to even larger widths, such as 256-bit or 512-bit integers, while maintaining high-performance execution.

Scheduling the removal of the kube-proxy IPVS backend

kubernetes.io · 16 Nov

DevOps · Kubernetes · Performance

Kubernetes SIG Network plans to remove kube-proxy’s `ipvs` backend in Kubernetes 1.40 after deprecating it in 1.35, because IPVS’s API poorly matches Kubernetes Services, lacks complete edge-case support and batch updates, requires iptables fallbacks, and has maintenance and RHEL support issues.

Users should migrate to `nftables` (recommended for Kubernetes 1.36+ with Linux kernel 5.13+) or improved `iptables`; `nftables` is feature-complete and performs comparably to or slightly better than `ipvs`.

Origin Range Requests: Serving large files without range-request tuning

blog.cloudflare.com · 23 Oct

Backend · Performance · Software Architecture

Cloudflare introduced Origin Range Requests, a self-service feature that serves partial requests for large cacheable files using fixed-size cache chunks instead of customer-tuned ranges.

The edge combines cached, in-flight, and aligned origin data while validating representation consistency and returning correct HTTP range responses. Migrating R2 reduced p99 time to first byte by roughly half and later cut tiered-cache traffic by about 6%. The feature is available on all plans through Cache Rules.

Benchmarking DuckDB v2.0-dev on NVIDIA Vera

duckdb.org · 16 Oct

Database · Hardware · Performance

DuckDB v2.0-dev was benchmarked on NVIDIA Vera using the complete TPC-H workload at scale factor 1,000.

On a single socket, Vera’s 88 Olympus cores achieved a median QphH@Size score of 3,073,292.99, 46% higher than a 96-core Intel Xeon 6 baseline at 2,109,782.19. The advantage was attributed to Vera’s memory bandwidth, low latency, and large caches. Both systems used 768 GB RAM, NVMe storage, and DuckDB 1.6.0.dev379.

Apple Mac mini review

arstechnica.com · 21 Sept

Hardware · macOS · Performance

Apple’s M6 Mac mini delivers major gains over the M4, with faster CPU and GPU performance, more cores, improved AI acceleration, and support for up to three displays.

Its unchanged compact design remains capable but has no upgradability and an awkward power button. The $899 starting price—$300 above the M4—substantially weakens its value.

Anatomy of a Texture

agentlien.github.io · 16 Sept

Algorithms · Low-Level Programming · Performance

Porting textures between PC and consoles requires calculating platform-specific memory addresses across BC7 block compression, texel swizzles, mip levels, tiled layouts, and non-contiguous streaming heaps.

These optimizations improve cache locality, bandwidth, and rendering cost, but complicate conversion and debugging. Correct handling requires mapping every block, tile, and mip while accounting for differing layouts and platform conventions.

When the fractional part of a float fixes your shader

crocidb.com · 13 Sept

Algorithms · Performance · Testing

A Voronoi shader developed for a music video stuttered only on a Windows PC with an RTX 4070.

Investigation traced the issue to DirectX 11 rendering through ANGLE: FXC’s O3 optimization incorrectly simplified GLSL/HLSL fractional calculations, truncating coordinates and snapping Voronoi centers. Replacing `fract` with equivalent arithmetic or introducing decimal multipliers avoided the miscompilation.

LRU is harder to beat than the KV-cache papers suggest

github.com · 10 Sept

Artificial Intelligence · Large Language Models · Performance

Simulation of 68,266 Claude Code and 23,608 Mooncake requests finds capacity pressure—not TTL expiry—drives most prefix-cache recomputation, especially two-second tool loops exceeding working-set capacity.

Three liveness-, cost-, and session-aware alternatives all lose to radix-leaf LRU. Results emphasize identifying capacity-bound versus TTL-bound regimes, validating simulators, and pinning in-flight chains.

Io_uring Without Readahead

frn.sh · 31 Aug

Backend · Performance · Operating Systems

Benchmarking Turso’s io_uring backends shows that O_DIRECT without application readahead serializes reads, reducing concurrency and device request merging.

Readahead keeps multiple SQEs in flight, allowing block-layer merging and improving scans, despite extra I/O and wasted pages. sqpoll can help with spare CPUs, while O_DIRECT may increase cache misses versus buffered syscall reads. B-tree-guided prefetching may outperform offset guessing.

Zig: Pointer Stability for ArrayLists

ziglang.org · 30 Aug

Low-Level Programming · Performance · Programming Languages

Zig’s 2026 Devlog reports broad compiler and tooling progress: pointer-stability checks improve ArrayList memory safety; build-system process separation and relocated package management accelerate builds; SPIR-V gains types, parallel codegen, and linking; @bitCast and LLVM lowering are redesigned; the ELF linker enables fast incremental builds; std.Io adds experimental io_uring/GCD backends; package workflows, Windows native APIs, and zig libc also advance.

Show HN: I worked on a new browser for 2 years, today it passed Acid 3

code.intellios.ai · 31 Jul

Low-Level Programming · Performance · Programming Languages

cwbrowser is a new, lightweight web browser built from scratch using Zig.

It features a custom rendering engine for HTML, CSS, and layout, while integrating Google’s V8 for JavaScript execution. Developed by one person over two years, it aims to prove that modern browsers can be smaller, faster, and more maintainable than current mainstream alternatives.

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