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

Healthchecks.io now uses self-hosted object storage

blog.healthchecks.io · 17 Apr

Backend · Performance · Software Architecture

Healthchecks.io migrated its object storage from managed providers to a self-hosted solution using Versity S3 Gateway on a Btrfs filesystem.

The move addresses performance inconsistencies experienced with previous providers, providing lower latency for ping body storage. While operational costs are higher, the simpler architecture improves reliability and maintainability for the service.

Why does C have the best file API

maurycyz.com · 28 Feb

C · Performance · Programming Languages

This article explores why C provides a superior file API through memory mapping (mmap), allowing files to be treated as memory.

The author argues that most modern languages neglect file manipulation, forcing unnecessary serialization and parsing, whereas C enables direct manipulation of binary formats on disk, which is essential for performance and handling large-scale data.

CPU Counters on Apple Silicon: article + tool

blog.bugsiki.dev · 7 Jan

Hardware · macOS · Performance

The author explores the intricacies of Performance Monitoring Unit (PMU) counters on Apple Silicon (M1, M2 chips), which track low-level hardware events like cache misses and instructions.

Dissatisfied with existing limitations in Apple Instruments—which often restricts monitoring to 10 or fewer counters due to unexplained conflicts—the author undertook a reverse-engineering journey using the private kperf framework. The research revealed that counter compatibility is determined by 10-bit masks; conflicts occur when counters vie for the same hardware slots. Crucially, the order in which counters are initialized affects their successful allocation. This deep dive led to the creation of 'Lauka', a specialized benchmarking tool for Apple Silicon that optimizes counter selection and provides comprehensive performance metrics, bypassing many of the constraints found in official Apple developer tools.

How we made a text-to-speech model respond in sub-50 ms

nari-labs.com · 19 Aug

Artificial Intelligence · Deep Learning · Performance

Nari Labs open-sources a Qwen3-TTS 1.7B CustomVoice serving system achieving 10 RPS, sub-50 ms p95 audible TTFA, and continuous playback on one NVIDIA H100 SXM.

Its shared scheduler coordinates Talker, Code Predictor, and Codec tasks, using CUDA graphs, cached decoding, dynamic silence trimming, and adaptive chunking. Benchmarks show superior latency and roughly $2 per million characters.

Cargo-nextest: 3x faster than cargo test, per-test isolation, first-class CI

nexte.st · 6 Jul

Performance · Testing · Open Source

Nextest is a high-performance test runner for Rust, offering up to 3x faster execution than cargo test.

It features a modern execution model, sophisticated test selection, advanced CI integration, and powerful debugging tools. Designed for reliability and scalability, it supports cross-platform development and provides detailed insights into test outcomes, making it a reliable choice for professional Rust projects.

Show HN: Timber – Ollama for classical ML models, 336x faster than Python

github.com · 27 Feb

C · Machine Learning · Performance

Timber is an open-source tool that compiles classical machine learning models into optimized C for native inference.

By eliminating Python runtime overhead, it achieves microsecond latency. It supports XGBoost, LightGBM, and scikit-learn, offering an Ollama-style workflow via a local HTTP API, making it ideal for low-latency fraud detection and edge computing.

Inside Shopify’s 2026 BFCM skate game

shopify.engineering · 2 Dec

Frontend · JavaScript · Performance

Shopify built a multiplayer skateboarding game around its BFCM 2026 live sales globe, combining commerce metrics with a browser experience running at 4K 120fps, under 20MB, and on mobile.

It uses three.js, r3f v10 alpha, WebGPU, Rapier physics, procedural shaders, KTX2 textures, virtual shadow mapping, and WebTransport for player positions. Three months of handmade work produced a sub-500K-triangle level with trajectory-assisted tricks. More than 170 countries played; 25,500+ merchants got first sales and 127,600+ reached their best sales day.

The hidden latency inside your database

planetscale.com · 3 Nov

Backend · Database · Performance

Network-attached storage is flexible and durable, but its network hop can hide significant latency inside cloud databases.

SSDs made storage fast enough that this hop became a bottleneck, while locally attached NVMe avoids it and removes EBS IOPS caps. PlanetScale Metal combines local NVMe with primary-replica clusters across availability zones, cross-zone commit acknowledgements, and failover. It can improve read-heavy, cache-miss, or IOPS-bound workloads, though RAM-cached workloads may not need it.

Using any C++ library in Godot

blog.conan.io · 29 Sept

C++ · Performance · Software Architecture

The article explains how to integrate C++ libraries into Godot through GDExtension and godot-cpp 10.

Using Conan, developers can manage platform-specific builds and dependencies consistently. A practical flecs example creates a Swarm node that simulates and renders 100,000 particles, exposing configurable properties to Godot’s editor and GDScript.

Aggressive AI scrapers are making it kinda suck to run wikis

weirdgloop.org · 21 May

Artificial Intelligence · Cybersecurity · Performance

Wikis are facing a crisis as aggressive AI scrapers, mimicking human behavior and utilizing residential proxies, consume excessive bandwidth and cause outages.

These bots ignore robots.txt, forcing sysadmins into an arms race that threatens site accessibility and community growth. Effective mitigation requires advanced behavioral heuristics rather than just blocking IP addresses or User Agents.

Ten Ways NAS Is Getting Enshitified

nascompares.com · 31 Jul

Hardware · Performance · Open Source

The consumer NAS market is shifting toward restrictive, non-upgradable hardware designs.

Manufacturers are increasingly using soldered RAM, proprietary drive locks, and PCIe lane throttling, limiting performance and repairability. These trends, combined with aging hardware re-releases and software homogenization, are transforming modular storage into locked-down appliances, forcing many users toward custom-built, open-source alternatives.

In C++, = default and {} are not the same constructor

lemire.me · 25 Nov

C++ · Low-Level Programming · Performance · Programming Languages

In C++, `span() = default` and `span() {}` can produce different initialization behavior and performance.

A first-declaration `span() = default` keeps `span` trivial: `span s;` leaves members uninitialized, while `span s{}` zero-initializes the object. An empty `span() {}` is user-provided; both forms leave members uninitialized, although the call may be optimized away. In a `box` loop, GCC 15/16 made `= default` take about 8 ns per span versus 1.73 ns with `{}`; GCC 14 and clang 21 showed no slowdown.

The Goose Programming Language

aardappel.github.io · 24 Oct

Low-Level Programming · Performance · Programming Languages

Goose is a memory-safe systems language that eliminates heap allocation, garbage collection, reference counting, and lifetime annotations by storing dynamic values inline on compiler-managed data stacks.

Its type system ensures references remain valid, while contiguous layouts, stable growth references, compact enums and relative links support efficient in-place construction and serialization. The compiler emits C and integrates directly with C. Goose’s 16-benchmark geometric means claim 3.5x C++ speed, 1.24–1.26x hand-optimized C++ speed, 1.13–1.19x safe Rust speed, and lower memory use.

4 Tiny Mistakes That Secretly Destroy App Performance

dev.to · 14 May

Frontend · JavaScript · Performance

Many applications suffer from performance issues due to 'death by a thousand cuts.'

Key culprits include unnecessary CORS preflight requests from unused custom headers, ineffective code splitting, bloated dependencies, and oversized background images. Even seemingly minor architectural decisions can significantly degrade perceived performance and load times for users on slower devices or mobile networks.

Static Allocation, Constant Work

matklad.github.io · 2 Sept

Algorithms · Low-Level Programming · Performance

Typed, type-segregated object pools can reduce use-after-free type confusion, though inline enums remain a caveat.

For robust systems, static allocation sets capacity at startup and rejects excess load, avoiding catastrophic OOM failures. Constant Work keeps a fixed collection of objects and processes all entries, improving state reasoning, cache behavior, vectorization, and predictable latency at maximum load.

Show HN: TurboQuant-WASM – Google's vector quantization in the browser

github.com · 4 Apr

Data Science · Performance · TypeScript

TurboQuant-wasm is an experimental WebAssembly library providing high-performance online vector quantization for browser and Node.js environments.

Based on Google Research's TurboQuant algorithm, it utilizes relaxed SIMD for optimized vector compression and fast dot product calculations, achieving roughly 6x compression with preserved inner products and bit-identical output to the reference Zig implementation.

We Built a Video Rendering Engine by Lying to the Browser About What Time It Is

blog.replit.com · 26 Feb

JavaScript · Performance · Software Architecture

Replit developed a deterministic video renderer that converts any URL into an MP4.

By injecting a virtual clock to monkey-patch JavaScript timing APIs, they force browsers to prioritize frame-perfect capture over real-time playback. The system includes complex workarounds for Chrome's compositor, server-side video preprocessing with FFmpeg, and audio interception via Web Audio API.

The Missing GitHub Status Page

mrshu.github.io · 10 Feb

Monitoring · Performance · Open Source

This project provides a comprehensive uptime mirror for GitHub, addressing the lack of aggregate uptime metrics on the official status page.

By replaying Atom feed snapshots archived via Flat Data, the system reconstructs a detailed incident timeline and calculates minute-level downtime windows. The pipeline utilizes GLiNER2 to infer component tags based on grounded incident text, ensuring high accuracy in per-service reporting. As an open-source initiative, it offers historical data dating back to 2017 and allows community contributions to improve data mapping and reliability for GitHub users.

JPEG XL vs AVIF for web use-cases

jakearchibald.com · 15 Oct

Performance

Benchmarks of AVIF against JPEG XL using avifenc, libjxl, and jixel show AVIF usually delivers smaller lossy web images, especially screenshots, illustrations, and transparency, while encoding and decoding faster with lower overall resource cost.

JPEG XL occasionally wins on photos, is substantially better for lossless compression, can losslessly transcode JPEGs, and may be competitive for high-quality or HDR images, though browser gain-map support is lacking. Higher efforts help AVIF and jixel more than libjxl. The recommendation is AVIF 4:4:4, testing JPEG XL when needed.

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