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

Hill-climbing Inkling 2 Mini inference on one RTX PRO 6000

huggingface.co · 25 Nov

Artificial Intelligence · Hugging Face · Large Language Models · Performance · LLM Benchmarks

Automated hill-climbing optimized Inkling 2 Mini inference on one 96 GB NVIDIA RTX PRO 6000, raising single-user decode from 136 to 190.6 tok/s and eight-user throughput to 716 tok/s.

Using vLLM nightly with DSpark speculative decoding, seven draft tokens, probabilistic sampling, and memory limits outperformed SGLang and reached about 95% of the measured memory-bandwidth ceiling. Outputs remained byte-identical, 250K-token retrieval passed 3/3 tests, and the pinned configuration was deployed as an Inference Endpoint.

GDN: use replay instead of rollback by am17an · Pull Request #31669 · ggml-org/llama.cpp

github.com · 24 Nov

Artificial Intelligence · C · C++ · Large Language Models · Performance

A llama.cpp pull request proposes replacing GDN snapshot rollback with replay, coordinated across backends including CUDA, Vulkan, Metal, Hexagon, OpenCL, SyCL, and WebGPU.

On an RTX PRO 6000, replay reduced recurrent-state memory by 73–91% for 3–15 snapshots; 32 sequences at seven snapshots used 5.5 GiB instead of 37.4 GiB. Speed was roughly flat for speculative decoding and prefill, while batched verification improved up to 34.5%, depending on workload and batch size.

Why your fine-tuning job takes longer than the FLOPs say

huggingface.co · 18 Nov

Artificial Intelligence · Data Science · Large Language Models · Machine Learning · Performance

FLOP-based estimates predict fine-tuning duration poorly because they omit setup, evaluation, checkpointing, and shared I/O overhead.

Across 272 production SFT runs on NVIDIA H200 clusters (1.6–172.4 hours), the baseline achieved R² 0.31 and MAE 12.41 hours. A pre-dispatch CatBoost model using 24 configuration and workload features achieved R² 0.98, MAE 1.71 hours, and median error 0.51 hours. Performance weakened for runs over 60 hours and remains H200-specific.

180B Parameters, 32GB of RAM: Pushing MoE Inference to the Limit with Transformers

huggingface.co · 18 Nov

Artificial Intelligence · Hugging Face · Large Language Models · Machine Learning · Performance

Transformers was extended to stream only routed MoE experts from SSD through a bounded device cache, letting Qwen3.8-Flash-Next run on a 32GB Mac M5.

The implementation uses prefetching, 3-bit expert weights, n-gram-table disk reads, grouped_mm, and Metal kernels. After optimization it reached 13.9 tok/s decode versus Strata’s 14.8 (6% slower), matched prefill at 228 versus 220 tok/s, and handled 121GB of experts, though it remains too slow for the author’s coding-agent workflow.

Rumble-2-Flash: an open 0.5B speech model for 40+ languages

huggingface.co · 18 Nov

Artificial Intelligence · Hugging Face · Machine Learning · NLP · Performance

Reson8 has open-sourced Rumble-2-Flash, a 0.5B-parameter speech recognition model under Apache 2.0 for 40+ languages.

Built on Qwen3-ASR and trained through on-policy distillation using GOLD, it supports Transformers and vLLM without custom code, automatic language detection, and output controls. It exceeds 7,000 RTFx and transcribes an hour in about half a second. It averages 6.96% multilingual error rate and reaches 7.86% WER on 302 hours of phone calls, matching NVIDIA Nemotron 3.5 Transcribe 30B.

Scaling Model Evaluation at Pinterest with Ray (Part 4)

medium.com · 4 Nov

Artificial Intelligence · Big Data · Machine Learning · Performance · Software Architecture

Pinterest built a Model Evaluation platform that combines Ray and Apache Spark to compute decomposable, holistic, and group-wise metrics at scale.

A ReducibleMetric contract defines preprocessing, batch partials, and reduction; group-wise metrics preserve segments in buckets. Fusing metric computation with Ray inference removes S3 serialization and a separate cluster, overlapping CPU metrics with GPU inference. Benchmarks across 30K–3M rows and up to 300 experiments showed 25–32% lower end-to-end time and approximately linear scaling.

Profiling TorchNeuron (Part 1): System-level profiling on AWS Trainium.

huggingface.co · 21 Oct

Artificial Intelligence · Machine Learning · Observability · Performance · PyTorch

TorchNeuron profiling on AWS Trainium combines torch.profiler and Neuron Explorer to trace inference from PyTorch dispatch through runtime scheduling to NeuronCore execution.

RMSNorm profiling shows that naive separate operations consume 2,355 µs of device time, while torch.rms_norm and torch.compile fuse them into one dispatch requiring 403 µs and 376 µs, respectively. The workflow uses key_averages() to identify hotspots and traces to verify how fusion removes intermediate tensors and execution gaps.

C vs. C#: racing VLC's Gaussian blur

martinfinkel.com · 21 Oct

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

A line-by-line C# port of VLC's Gaussian blur, built with .

NET Native AOT, ran 23% slower than VLC's C implementation on 1080p frames, despite producing byte-identical output and allocating nothing per frame. Two small edits brought it within 8%. Shared algorithmic optimizations made C# 2.5x faster than current VLC code; AVX2 SIMD tuning reached 236 fps versus C's 240 fps at sigma 4, while both were about 30x faster than the original. C still leads on some loops.

MPS in PyTorch 2.15

huggingface.co · 20 Oct

Artificial Intelligence · Machine Learning · Performance · Python · PyTorch

PyTorch 2.15 significantly improves MPS on Apple silicon Macs.

It adds FP8 tensors and scaled matrix multiplication, speeds LLM decoding through specialized linear, grouped matmul, and softmax kernels, and expands GPU linear algebra support. MoE models decode 5–6.5× faster than in 2.14; Qwen3.6-35B-A3B reaches 61.3 tokens/s on an M3 Ultra. Metal padding reduces Wan2.2 VAE decode memory from 270 GiB to 8 GiB. MPS now requires macOS 15+, and PyTorch requires Python 3.11+.

Introducing ModuleLens: Zooming into PyTorch Modules for Human and Agentic Engineering

medium.com · 19 Oct

Machine Learning · Performance · Python · PyTorch · Software Architecture

Pinterest built ModuleLens, a Module-First framework for isolating and reconstructing PyTorch modules from distributed production models.

ModuleTracer captures initialization arguments, inputs, outputs, weights, and metadata with hooks; ModuleRepo stores versioned artifacts in WandB Registry, and consumption tools support Jupyter, IPython, and AI agents. Engineers can run, test, profile, and benchmark modules locally without multi-GPU initialization, shortening feedback loops. Deployments support Training Analyzer, KernelAgent, and scaling ROI analysis, with planned autonomous optimization and autoresearch.

Linus Torvalds's first LLM-assisted patch series

lwn.net · 14 Oct

C · Linux · Low-Level Programming · Performance · Operating Systems

Linus Torvalds posted his first LLM-assisted Linux patch series: ten patches that optimize folio lookup by detecting hot folios, delaying their release until after an RCU period, and performing folio data accesses under RCU.

When user copies cause no page faults, the fastpath avoids refcount acquisition. The changes produced an order-of-magnitude speedup in a read()-heavy benchmark, but reviewers found a race condition requiring further work.

Run fast, private agents on-device with LFM2.5-24B-A2B

huggingface.co · 13 Oct

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

Liquid AI released LFM2.5-24B-A2B, an open-weight 24B-parameter reasoning MoE with only 2B active parameters per token for fast, private on-device agents.

It uses 40 layers, 64 experts with top-4 routing, a 131K-token context window, and a 128K-token vocabulary, and is trained through agentic reinforcement learning. It leads or matches competitors on five of eight tool-use/agentic benchmarks, scoring 48.09 on LiveClaw, while decoding 184 tok/s on Apple M5 Max and over 21K output tok/s on one NVIDIA B300. It supports major inference runtimes and agent harnesses.

Rewinding the exponential: How we keep hardware usage down

blog.cloudflare.com · 13 Oct

Backend · Big Data · Distributed Systems · Performance · Software Architecture

Cloudflare reduced data-pipeline backbone traffic by about 70 GB/s through schema decomposition, zstd compression, load-balanced replication, early sampling, and repeated aggregation.

Product-specific schemas cut bandwidth 35–40%, zstd reduced compressed throughput nearly 40%, and 2026 changes saved roughly 38 GB/s through load balancing, 25 GB/s through sampling, and 7+ GB/s through aggregation. Ready-Analytics receiver optimizations reclaimed about 750 CPUs and 3.5 TiB of memory, while projected 2031 data volume was halved.

pingdotgg/ts-rust

github.com · 8 Oct

CLI · Performance · Programming Languages · Rust · TypeScript

ts-rust (tsc-rs) is an experimental Rust port of Microsoft’s TypeScript 7 compiler, checker, language server, and API, intended as a faster, potentially WebAssembly-compatible replacement for tsc.

It preserves Go’s algorithms and CLI, includes built-in Effect diagnostics, and matches Go’s results across 181,711 tests and tested projects. Benchmarks show it is 1.61× faster than tsc 7 on six real applications, with Linux x64 and macOS arm64 releases; known limitations remain in some monorepos, builds, and long editor sessions.

Thundering herd of circuit breakers

engineering.zalando.com · 7 Oct

Backend · Distributed Systems · Observability · Performance · Software Architecture

A client-side circuit breaker trapped traffic in a loop, blocking about 95% of requests for hours despite a healthy service.

A custom OpenTelemetry trace visualizer showed that half-open probes succeeded on a three-pod, under-provisioned service, but closing the breaker released a thundering herd; queues exceeded 100 ms, requests timed out, and the breaker reopened. Pre-scaling or force-closing allowed HPA capacity to catch up. CPU-based HPA missed three-second bursts, exposing limits of aggregate metrics and representative probes.

qwen4exp : halve the indexer score memory by ServeurpersoCom · Pull Request #29825 · ggml-org/llama.cpp

github.com · 1 Oct

Artificial Intelligence · C · C++ · Large Language Models · Performance

PR #29825 halves qwen4exp indexer compute-buffer memory in llama.cpp by scoring one head at a time, applying ReLU in place, and accumulating each head’s result instead of copying all scores.

CUDA memory falls from 3.0 to 1.5 GiB at 131k context/ub 2048 and from 6.1 to 3.0 GiB at ub 4096; at 262k/ub 4096 it drops from 11.7 to 5.6 GiB. Logits remain bit-exact, speed is unchanged, and full-model loading avoids OOM again.

What's new in the .NET 11 runtime

learn.microsoft.com · 10 Nov

C# · Performance

.NET 11 updates the runtime with higher x86/x64 and Arm64 hardware baselines, Runtime Async V2, and extensive JIT, SIMD, ReadyToRun, NativeAOT, WebAssembly, and VM improvements.

Runtime Async replaces compiler-generated state machines with runtime-managed suspension, improving live stack traces, debugging, and async overhead, with preview opt-in. JIT optimizations improve bounds checks, devirtualization, conversions, and intrinsics; R2R default comparers can be up to 20× faster. The runtime also supports over 1,024 CPUs and in-process crash reports.

How we made Python's packaging library 3x faster

iscinumpy.dev · 9 Jan

Performance · Python · Open Source

Damian Shaw and other contributors have significantly improved the performance of the packaging library, the core tool for handling Python versions and specifiers.

By utilizing Python 3.15’s new statistical profiler and a massive dataset from PyPI, the team identified and resolved bottlenecks in core constructs like Version and SpecifierSet. Key optimizations included refining regular expressions with possessive qualifiers, removing expensive NamedTuple and singledispatch usage, and implementing __slots__. Consequently, Version construction is now up to 2x faster, and SpecifierSet filtering has improved fivefold. These changes, released in version 26.0rc1, provide a substantial performance boost for the entire Python ecosystem, including tools like pip and uv.

PSA: Upgrade Flash Next to DFlash2 if you haven't! +17% on average

huggingface.co · 30 Oct

Artificial Intelligence · Large Language Models · Performance · LLM Benchmarks

Qwen3.8-Flash-Next-DFlash2-GGUF adds a DFlash 2 speculative-decoding drafter for Qwen3.8-Flash-Next in llama.cpp, delivering 87.9 versus 75.1 t/s on average, a 17% gain on an Apple M5 Max.

The recommended Q4_0 file matches Q8_0 acceptance and speed while loading 287 MiB less. DFlash 2 drafts token blocks that the target verifies losslessly; it requires llama.cpp v0.8.0 or newer and is not a standalone model.

The Return of Sail Power: Cargo Ships Are Turning Back to the Wind

gcaptain.com · 15 Sept

Hardware · Performance · Environment

Wind-assisted propulsion is moving from niche experiments toward mainstream commercial shipping.

Rotor sails, rigid wings, and suction-based eSAIL systems are being installed or tested on containerships, bulk carriers, tankers, and potentially LNG carriers. Automated controls and voyage planning improve integration with engines, while rising fuel costs and emissions pressure strengthen the business case despite weather, space, safety, and regulatory constraints.

Where it came fromHugging Face BlogHacker NewsRedditPinterest EngineeringCloudflare BlogZalando EngineeringCreate a Snapbyte.dev digest and choose Performance as one of your topics.Build your digest