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

How We Built TLX: A Hardware-Native GPU Compiler for Production ML at Scale

engineering.fb.com · 10 Nov

Artificial Intelligence · Low-Level Programming · Machine Learning · Performance · Programming Languages

Meta built TLX, an extension to Triton that adds explicit MIMW-style warp-group, memory, synchronization, and cluster orchestration while retaining Triton’s Python, tensor-programming, and autotuning model.

TLX exposes hardware features including TMA and TMEM across NVIDIA Hopper, Blackwell, and AMD GPUs. In production, it helped GEM training reach 20–25% end-to-end MFU, reduced RecSys inference latency by up to two-thirds through IKBO, and powered distributed grouped GEMM for large-scale LLM MoE pretraining.

F3 Lightning: How Meta Accelerates Ads ML Features to Production at Scale

engineering.fb.com · 3 Nov

Artificial Intelligence · Backend · Machine Learning · Performance · Software Architecture

Meta built F3 Lightning on top of F3 to let Ads ML features be compiled, validated, deployed, and rolled back independently instead of shipping as one merged graph.

This removes the release-blocking effect of failures across a system serving more than 20,000 features while preserving shared execution. Stable computation identifiers, one execution plan, a shared memory buffer, and dense index mapping eliminate duplicated work and request-time lookups. Comparable features now reach production about 3.6x faster with no added infrastructure compute cost.

Meta Andromeda: Powering the Next Generation of Ads Retrieval Through Model-System Co-Design

engineering.fb.com · 28 Oct

Artificial Intelligence · Deep Learning · Machine Learning · Performance · Software Architecture

Meta’s next-generation Andromeda ads-retrieval engine uses model-system co-design to deliver near ranking-level quality while scoring more than one billion eligible ads per second on a single GPU server, a 100x throughput increase over the 2024 system.

Its Retrieval Mixture-of-Experts architecture uses about 300x fewer inference-time FLOPs, while fused GPU kernels and co-located index matching eliminate memory and network bottlenecks. Since 2025, Andromeda has increased Facebook conversions by 2.4%.

Single-tenant Titus: VM-level isolation on a multi-tenant container platform

netflixtechblog.com · 22 Oct

Backend · DevOps · Kubernetes · Performance · Software Architecture

Netflix introduced single-tenant Titus, giving selected workloads a dedicated EC2 VM while preserving Titus’s API, deployment path, and platform-managed patching.

Federation allowlists eligible jobs, autoscaling provisions right-sized instances, and scheduling enforces one task per node. The mode targets stateful, high-throughput streaming and other latency-sensitive services affected by shared-kernel interference. Netflix reports improved isolation, denser remaining multi-tenant packing, and easier maintenance, while accepting slower cold starts and dedicated-node overhead; shared tenancy remains the default.

Single-tenant Titus: VM-level isolation on a multi-tenant container platform

netflixtechblog.com · 22 Oct

Backend · DevOps · Kubernetes · Performance · Software Architecture

Netflix introduced single-tenant Titus, a mode that runs one container task on a dedicated EC2 VM while preserving Titus’s API, deployment workflow, and managed host ownership.

It targets stateful, high-throughput, latency-sensitive workloads affected by shared-kernel interference in cache, memory bandwidth, networking, storage, and scheduling. Federation allowlists workloads, autoscaling provisions right-sized instances, and Kubernetes prevents colocation. Benchmarks assess throughput and P99 latency under “havoc” neighbors; dedicated nodes improve isolation, simplify patching, and can reduce fleet fragmentation, but add launch latency and sizing overhead.

How Shopify turns open models into task experts

shopify.engineering · 21 Oct

Artificial Intelligence · Large Language Models · Machine Learning · Performance · AI Agents

Shopify turns open models into task experts for Sidekick by defining quality, optimizing the frontier-agent baseline, selecting an open model, benchmarking inference, and continually post-training on repaired production failures.

For GraphQL, six loops raised NVIDIA Nemotron 3.5 Lightning’s judge score from 37.7 to 74.5, exceeding the frontier model’s 73 after 61,000 healed examples. It responds in 0.87 seconds versus 6.50, is 8× faster at p99, and costs about 90% less to serve, using Shopify-owned weights on its GPUs.

I don't trust ON DELETE CASCADE

planetscale.com · 21 Oct

Backend · Database · Performance · PostgreSQL · SQL

ON DELETE CASCADE can turn simple deletions into outages and replication failures as foreign-key trees grow.

A cascading delete removes matching rows in one transaction, generating dead tuples, index updates, and WAL while holding locks; migrations may queue writes, unindexed keys can trigger scans, and logical replication can leave orphans or fail without replica identity. Soft deletes avoid this by marking one row, then reaping descendants in small background batches, keeping transactions short and bounded.

Advancing Generative Recommendation Inference: our collaboration with NVIDIA on TensorRT LLM

engineering.atspotify.com · 16 Oct

Artificial Intelligence · Large Language Models · Machine Learning · Performance · Software Architecture

Spotify and NVIDIA collaborated to build a production inference stack for generative recommendations, initially targeting personalized podcasts and broader use across Spotify.

TensorRT LLM was enhanced with multi-sequence beam search, multi-item scoring, out-of-tree model support, and embedding injection for user soft tokens, consolidating capabilities previously split across vLLM and SGLang. Its sampler improves GPU utilization and performance, delivering up to 54% beam-search and 7% scoring cost reductions on the 1.7B Qwen3 model.

From 2,500 requests to 24: Rebuilding star history without the stargazers

github.blog · 14 Oct

Backend · GitHub · Performance · REST API · Software Architecture

GitHub built an aggregate star-history endpoint that returns up to 30 weeks of daily counts without stargazer identities.

It filters stars by an indexed time range before grouping, reducing `react/react` history retrieval from about 2,511 requests and 6 million repeated row scans to about 24 requests examining roughly 251,000 rows. The design addresses scraping risks and database load, though unusually dense weeks can still be expensive.

Meta’s Generative Ads Model (GEM): Scaling the Central Model and Compute Engine for Frontier Ads AI

engineering.fb.com · 13 Oct

Artificial Intelligence · Deep Learning · Machine Learning · Performance · Software Architecture

Meta’s 2026 GEM is a unified ads recommendation foundation model and compute engine for Meta’s surfaces and objectives.

It uses Kunlun to scale model complexity 2.5x, transfers central intelligence through LoopFM and Solaris, and trains across thousands of GPUs with 4x the training FLOPs at double the end-to-end efficiency (20–25% MFU). GEM reports 18.9% conversion and 12% CTR improvement, plus targeted conversion uplifts of 5.8% on Facebook, 4.1% on Instagram, and 1.6% off-site.

Smaller, faster, safer: running Kimi and GLM at scale

blog.cloudflare.com · 3 Aug

Artificial Intelligence · Large Language Models · Performance

Cloudflare's Workers AI infrastructure optimizes inference for large, long-context models like Kimi and GLM.

By implementing FP8 KV cache quantization, INT4 weight compression, and a robust KV cache integrity checking layer, they achieve significantly higher concurrency and efficiency without sacrificing model accuracy, supported by the SGLang framework.

PostgreSQL Bloat Is a Feature, Not a Bug

rogerwelin.github.io · 16 Feb

Database · Linux · Performance

This article explores PostgreSQL bloat, explaining how MVCC and the physical storage layer (Pages and Tuples) lead to dead space during UPDATE and DELETE operations.

It details the performance impact of accumulated dead tuples and provides practical solutions using VACUUM, REINDEX, and autovacuum tuning to manage database size and efficiency effectively.

How fast is a macOS VM, and how small could it be?

eclecticlight.co · 2 May

Hardware · macOS · Performance

Recent tests on macOS Tahoe reveal that virtual machines running on Apple silicon sustain high performance, reaching 98% of host CPU and 95% of GPU speeds.

Minimal configurations with 2 cores and 4 GB of RAM suffice for everyday tasks, making macOS virtualization viable even on entry-level hardware like the MacBook Neo, provided storage needs are managed.

Is Rust faster than C?

steveklabnik.com · 9 Jun

Performance · Programming Languages · Rust

The debate over whether Rust is faster than C often hinges on how one defines 'all things being the same.'

While both languages can produce identical assembly for low-level tasks like inline assembly, they differ significantly in default behaviors and semantics. Rust can optimize memory layout by reordering struct fields for size, whereas C maintains a strict order. Furthermore, social factors play a role; Rust's safety guarantees often embolden developers to implement complex optimizations, such as parallelism, that might be avoided in C due to safety concerns. Ultimately, while C's lack of runtime bounds checks can offer a raw speed advantage, Rust's ability to optimize those checks away or enable fearless concurrency means the performance difference is usually an engineering trade-off rather than a fundamental language limitation.

sanstun: A sans-IO, parallel-friendly WireGuard implementation in Rust

firezone.dev · 31 Oct

Design Patterns · Encryption · Performance · Rust · Software Architecture

Firezone announced sanstun, an open-source Apache 2.0 sans-IO Rust implementation of the WireGuard state machine, replacing its deprecated boringtun fork.

Its API separates I/O, timing, randomness, buffering, and protocol state; Interface::receive parses and rate-limits datagrams before routing typed messages to Tunnel instances. PendingEncapsulate and corresponding decapsulation types isolate bookkeeping from encryption, enabling worker-thread parallel crypto while Interface and Tunnel state remain single-threaded. Benchmarks show 1280-byte encryption bookkeeping is about 2% of total work.

Dell UltraSharp 52 Thunderbolt Hub Monitor

dell.com · 14 Jan

Hardware · Performance · Productivity

This technical specification outlines the features of a high-performance 51.5-inch ultra-wide monitor designed for professional productivity and creative workflows.

The display utilizes In-plane Switching (IPS) Black Technology to achieve deeper blacks and superior contrast ratios compared to standard IPS panels. It boasts a massive 6144 x 2560 resolution with a 120Hz refresh rate, ensuring smooth visuals and sharp detail. The monitor covers 99% of the DCI-P3 and 100% of the sRGB color gamuts, providing excellent color accuracy. Connectivity is versatile, featuring HDMI 2.1 ports with VRR support and DisplayPort 1.4, making it a powerful hardware choice for demanding tasks.

Caveling-2-Mini (post-trained/fine-tuned Inkling-2-Mini)

caveman.so · 29 Nov

Artificial Intelligence · Large Language Models · Machine Learning · Performance · LLM Benchmarks

Caveling-2-Mini is an Apache-2.0 post-trained version of Thinking Machines’ Inkling-2-Mini that removes redundant reasoning loops while preserving its architecture, tokenizer, chat template, tool use, and vision input.

At xhigh, it retains 100.5% of base accuracy across nine benchmarks with 43.1% fewer reasoning tokens and an estimated 1.71× faster TTFA; vision retains 99.3% accuracy with 54% fewer output tokens. Training updated only 168 BF16 attention tensors, leaving 1,130 tensors unchanged.

Microsoft May Have Created the Slowest Windows in 25 Years with Windows 11

eteknix.com · 10 Jan

Performance · News · Operating Systems

A performance analysis conducted by tech enthusiast TrigzZolt suggests that Windows 11 may be the slowest Microsoft operating system released in the last 25 years.

Despite marketing claims of superior speed, benchmarks across various versions including Windows XP, Vista, and Windows 10 reveal that Windows 11 lags in critical areas. The tests, performed on a Lenovo ThinkPad X220, highlight significant delays in system boot times and application launches for tools like Paint and File Explorer. Furthermore, Windows 11 exhibited the highest idle RAM usage, attributed to numerous background services and newly integrated AI features. While it showed some improvements in file transfer speed and storage management, the overall consensus is that the OS is bogged down by unnecessary features, necessitating a leaner approach from Microsoft to improve the user experience.

Zeroserve: A zero-config web server you can script with eBPF

su3.io · 6 Jun

Backend · Performance · AI Agents

zeroserve is a high-performance, single-threaded HTTPS server that uses eBPF for programmable, sandboxed middleware and io_uring for efficient I/O.

Packaged as a single tarball, it supports hot-reloading, TLS 1.3, and HTTP/2. It outperforms nginx and Caddy in low-latency request handling and small-file delivery, functioning as a complete web gateway without traditional configuration files.

Where it came fromHacker NewsEngineering at MetaNetflix TechBlogShopify EngineeringPlanetScaleSpotify EngineeringCreate a Snapbyte.dev digest and choose Performance as one of your topics.Build your digest