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

Announcing Box3D :: Box2D

box2d.org · 30 Jun

C · Performance · Programming Languages

Box3D is a new open-source 3D physics engine built in C17, designed as a 3D extension of the established Box2D.

Developed to meet the specific performance and architectural needs of the game The Legend of California, it features triangle mesh collision, height-field collision, and multi-threading support, providing a specialized solution for complex game physics.

Anthropic's original take home assignment open sourced

github.com · 19 Jan

Artificial Intelligence · Career · Performance

This repository features a performance take-home challenge from Anthropic, originally designed to test human developers.

It now serves as a benchmark for comparing human performance against various Claude models, including Claude Opus 4.5 and Claude Sonnet 4.5, across different test-time compute harness durations. Developers who can optimize their code to beat the top Claude Opus 4.5 record are invited to apply for recruitment at Anthropic.

Bend

bend-lang.com · 17 Sept

Performance · Programming Languages · Testing

Bend is a programming language designed for AI-generated applications, combining near-C native performance, automatic CPU/GPU parallelism, and fast proof checking.

Developers define invariants in LAWS.bend and require proofs in PROOF.bend, preventing AI changes that violate them. It targets fast, verifiable backend software and integrates with AI agents through AGENTS.md.

Our commitment to Windows quality

blogs.windows.com · 20 Mar

Artificial Intelligence · Performance · Windows

Microsoft announced a renewed focus on Windows 11 quality, prioritizing performance, reliability, and user-centric design.

Key updates include refined Copilot integration, enhanced taskbar customization, improved File Explorer speed, and more control over system updates. These efforts aim to reduce user disruption, improve system stability via WinUI3, and ensure a more personalized and consistent Windows experience.

OpenAI Jalapeño: Better than Nvidia Blackwell

newsletter.semianalysis.com · 25 Aug

Artificial Intelligence · Hardware · Performance

OpenAI’s Jalapeño is a generalized LLM inference ASIC developed with Broadcom in roughly 16 months.

Using HBM4 and intensive hardware-software codesign, it reportedly leads tested NVIDIA, AMD, and Google chips in performance per watt across several models, despite early silicon and limited benchmarks. Production is expected to ramp in 2027, challenging established accelerator ecosystems.

FeSens/openTPU

github.com · 6 Oct

Artificial Intelligence · Hardware · Large Language Models · Low-Level Programming · Performance

openTPU is an open-source AI accelerator that unifies SystemVerilog RTL, an 8×32-bit ISA, bit-exact simulator, kernel language/compiler, host tools, and profiler to make neural-network inference understandable and runnable on hardware.

It targets a 4 GiB Kintex-7 PCIe card, runs models including Qwen3, LFM2.5, and Qwen3.5, and matches simulator tokens bit for bit. Its explicit instruction-driven architecture exposes data movement and timing, while 4-bit weights and expert offloading extend capacity and improve decode speed.

Meta’s Renewed Commitment to jemalloc

engineering.fb.com · 9 Mar

Hardware · Performance · Open Source

Meta has announced a renewed commitment to jemalloc, the high-performance memory allocator.

By unarchiving the open-source repository and addressing technical debt, Meta aims to modernize the codebase. Future focus areas include Huge-Page Allocator improvements, memory efficiency, and AArch64 optimizations, ensuring the foundational tool evolves alongside modern hardware through community collaboration.

Please, I beg you, we need to stop using Stored Procedures (from applications)

heffree.dev · 30 Aug

Database · Performance · SQL

The author argues that applications should usually avoid Stored Procedures, because parameterized queries and plan caching provide equivalent DBMS benefits while keeping database logic versioned with application code.

They urge developers to learn SQL and collaborate with DBAs, emphasizing fewer network requests, indexes, profiling, ORM query inspection, avoiding N+1 and Cartesian explosions, and careful dynamic-query design, conversions, TVPs, and filtered indexes.

Building a Procedural Hex Map with Wave Function Collapse

felixturner.github.io · 9 Mar

Algorithms · Performance · Computer Science

Interactive developer Felix Turner created a procedural 3D medieval map generator using Three.js, WebGPU, and the Wave Function Collapse (WFC) algorithm.

By implementing a hexagonal grid with 4,100 tiles, the project overcomes complex tiling constraints through multi-grid solving and backtracking. It features high-performance rendering via BatchedMesh and custom TSL shaders for atmospheric visual effects.

Every Byte Matters

fzakaria.com · 1 Jun

Low-Level Programming · Performance · Computer Science

Performance optimization requires understanding hardware-level data access.

By shifting from an Array of Structs to a Struct of Arrays, developers can improve cache utilization. Aligning data structures with CPU cache line sizes and minimizing working set sizes significantly reduces memory latency, especially in random access scenarios where CPU prefetching is ineffective.

Why Developing For Microsoft SharePoint is a Horrible, Terrible, and Painful Experience

medium.com · 23 Jan

Cloud Computing · Performance · Software Architecture

The development experience for Microsoft SharePoint is characterized as overwhelmingly negative due to its cumbersome architecture and poor performance.

Key issues include a slow development loop within the SharePoint Framework (SPFx), inconsistent APIs across REST, CSOM, and JSOM, and frustrating debugging processes. Despite the shift toward SharePoint Online, the platform remains sluggish with unacceptable page load times and scalability limits on list items. Furthermore, the permission model is overly complex, and integration with other Microsoft 365 services often feels fragmented. The author recommends utilizing more efficient alternatives such as Azure Blob Storage for files, dedicated databases like Azure SQL for structured data, and modern collaboration tools like Notion or Confluence as superior choices over the aging SharePoint infrastructure.

Show HN: Llmspeed – feel how fast a local LLM runs before you buy the hardware

llmspeed.dev · 17 Oct

Artificial Intelligence · Hardware · Large Language Models · Performance · LLM Benchmarks

Llmspeed estimates how local LLMs will feel on different hardware before users buy it.

The site lets users browse devices such as NVIDIA GPUs, AMD systems, Macs, CPUs, and cloud accelerators alongside models including Qwen, GPT-OSS, Gemma, Llama, and DeepSeek. Estimates cover short prompts on a single device, using community benchmarks or projections from comparable setups and specifications. The project is open source on GitHub.

An hour of audio transcribed in about 13s on MacBook Air

eg2.haku.sh · 13 Oct

Artificial Intelligence · macOS · NLP · Performance

EmbeddingGemma Transcribe turns Google’s EmbeddingGemma 2 embedding model into an on-device speech-to-text system, transcribing an hour of audio in about 12.6 seconds on a base M3 MacBook Air.

Its unchanged audio encoder maps short audio slices into text space, where a reader selects among roughly 229,000 English words; a small model adds punctuation and capitalization. Trained in under two hours, it reaches about 5% word error rate and runs privately on the Neural Engine.

Optimizing a Lock-Free Ring Buffer

david.alvarezrosa.com · 26 Sept

C++ · Low-Level Programming · Performance

The article develops a C++ single-producer, single-consumer (SPSC) ring buffer from a basic FIFO queue to a lock-free design.

Replacing a mutex with atomics, tuning memory ordering, and caching the other thread’s index raises reported throughput from 12M to 305M ops/s (25×); results depend on the benchmark setup and hardware.

Distributed, high-performance blob storage on SQLite

zerodha.tech · 19 Nov

Backend · Database · Performance · Software Architecture · SQLite

Zerodha built Blobasaur, an open-source distributed blob server written in Rust that uses sharded SQLite storage and the Redis protocol.

It replaces unmaintained, single-node SSDB for Kite’s bursty workloads of multi-kilobyte to multi-megabyte JSON preferences. Per-shard writers, batched transactions, concurrent readers, zstd compression, TTLs, and Redis Cluster routing provide horizontal scaling and single-digit-millisecond latency. In benchmarks, 16 shards delivered 25,324 HSET operations per second, while production p99 latency across three nodes remains about 2 ms.

Dav2d

jbkempf.com · 31 May

Low-Level Programming · Performance · Open Source

VideoLAN has introduced dav2d, a fast, open-source software decoder for the new AV2 video codec.

Building on the success of the dav1d AV1 decoder, dav2d aims to provide a high-performance, portable implementation to support ecosystem adoption before dedicated hardware becomes available. The project is currently feature-complete and undergoing active optimization for x86, ARM, and RISC-V architectures.

The time the x86 emulator team found code so bad they fixed it during emulation

devblogs.microsoft.com · 15 Jun

Algorithms · Performance · Computer Science

A developer recounts an old Windows x86-32 emulator for non-native processors.

The emulator used JIT binary translation for performance. It encountered a program with a loop-unrolled initialization function spanning 256KB for just 64KB of data. The emulation team implemented a special hack to replace this inefficient code with a compact, optimized loop.

Apple A20 Pro debuts with 7-core GPU, 32-core Neural Engine and 50% more memory bandwidth (~115 GB/s)

notebookcheck.net · 9 Sept

Hardware · Mobile · Performance

Apple’s A20 Pro SoC, powering iPhone 18 Pro models, uses a 2 nm process, a redesigned six-core CPU, seven-core GPU, 32-core Neural Engine, and 50% higher memory bandwidth.

Apple claims up to 40% faster graphics and 40% better sustained performance than A19 Pro, but independent testing is needed. Battery claims also depend on platform changes.

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