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

I Made My RAG Safer. It Got Worse Under Load

dev.to · 22 Nov

Artificial Intelligence · Large Language Models · Performance · Software Architecture · RAG

The author rebuilt The Relay, a RAG system that retrieves from three papers, cites every sentence, refuses unsupported questions, and verifies claims before streaming them.

SingleFlight deduplication served 30 burst requests with six model calls, while pre-model refusals conserved quota. Sentence-level verification reduced first verified-sentence latency (324.5 ms vs. 614.2 ms) but under heavy overload lowered delivery from 67.4% to 62.8%, partly because cancelled streams retained quota. Queueing, model-specific limits, and judge-model errors were major operational concerns.

I rewrote PostHog's SQL parser, 70x faster, while barely looking at the code

posthog.com · 24 Jun

Artificial Intelligence · Performance · Rust

PostHog replaced their ANTLR-based SQL parser with a hand-written recursive-descent parser in Rust, developed using AI and automated property-based testing.

By using an existing parser as an oracle and continuous fuzzing, they achieved a massive performance improvement, making the new parser up to 454x faster while maintaining full compatibility with their production database requirements.

Haiku R1/beta6 released

haiku-os.org · 22 Aug

Hardware · Performance · Operating Systems

Haiku R1/beta6 delivers nearly two years of work, resolving over 530 issues and improving stability, performance, memory management, filesystems, hardware compatibility, POSIX support, and user experience.

It adds officially branded Firefox ports, QEMU NVMM hardware virtualization, Go support, disk cleanup, and stronger low-memory recovery. ARM64 and multiprocess WebKit remain experimental.

Show HN: Pryzmera – Fast PDF viewer, over 1200x faster rendering than Acrobat

pryzmera.com · 2 Dec

Performance · Marketing

Pryzmera is a fast PDF and image viewer for massive documents, claiming up to 10× faster opening and over 1000× faster page rendering than other viewers.

It searches thousand-page PDFs in typically 0.03 seconds or less and handles images with billions of pixels. Features include arbitrary-angle rotation, invertible dark mode, minimal UI, full-page or visible-area screenshots, and customizable keybindings, navigation speed, and graphics quality. It is available for Windows with a free 30-day trial.

How to Implement an FPS Counter

vplesko.com · 22 Apr

Performance · Programming Languages · Computer Science

To accurately measure and display an FPS counter in games, avoid calculating based on individual frames or simple averages.

Instead, use a rolling window of recent frames or processing times to smooth fluctuations. High-precision timers are essential, and using a queue or circular buffer ensures reliable performance tracking over a fixed duration.

Why Objective-C

inessential.com · 27 Feb

Performance · Programming Languages · Open Source

The author explores why they chose Objective-C to build SalmonBay, a high-performance static site generator.

Despite modern alternatives like Swift, Rust, or Go, they prioritized Objective-C for its C-level speed, simplicity, and stability. The project achieved its goal of rendering a 25-year-old blog in under one second while celebrating the language's unique elegance.

Clamiga: Common Lisp for the Amiga

nnamgreb.de · 17 Aug

Low-Level Programming · Performance · Programming Languages

Clamiga is a portable Common Lisp implementation targeting classic AmigaOS 3 on 68k, MorphOS on native PPC, macOS, and Linux.

Its compact bytecode VM, 32-bit values, compacting GC, native AmigaOS bindings, Quicklisp compatibility, and 68k JIT enable full Lisp development on memory-constrained hardware. The project is stable but continues toward ANSI compliance and broader API support.

Quadrupling code performance with a "useless" if

purplesyringa.moe · 12 Jul

Algorithms · Low-Level Programming · Performance

Optimizing a domain-specific compressor loop involves resolving a data dependency bottleneck.

By leveraging branch prediction to speculate that the state remains unchanged, the algorithm shifts from latency-bound to throughput-bound. Using a volatile cast preserves the branch logic, effectively bypassing compiler optimizations to enhance execution speed through speculative hardware execution.

Deno 2.9

deno.com · 25 Jun

Cybersecurity · Node.js · Performance

Deno 2.9 introduces 'deno desktop' for building cross-platform native desktop apps from web stacks without Electron.

It features easier Node.js project migration by reading existing lockfiles, improved performance, and support for Node.js 26. Additionally, it adds advanced Web Cryptography, snapshot testing, and enhanced supply chain security.

DuckDB 1.5.2 – SQL database that runs on laptop, server, in the browser

duckdb.org · 22 Apr

Big Data · Database · Performance

DuckDB v1.5.2 has been released, featuring bugfixes, performance improvements, and the launch of the stable DuckLake v1.0 lakehouse format.

The update includes Iceberg enhancements, Jepsen testing for increased robustness, a revamped WebAssembly shell, and notable performance gains in TPC-H benchmarks. Various community events are also scheduled for the upcoming quarter.

Why Are We Still Doing GPU Work in JavaScript? (Live WebGPU Benchmark & Demo🚀)

dev.to · 12 Mar

Frontend · JavaScript · Performance

WebGPU is revolutionizing web development by providing direct access to GPU compute capabilities.

While JavaScript remains essential for application logic, WebGPU excels in massive parallel tasks like matrix multiplication and image processing. Recent benchmarks show it significantly outperforms CPU-based JavaScript in compute-heavy scenarios, despite requiring more complex boilerplate code and modern browser support.

Google Street View in 2026

tech.marksblogg.com · 26 Feb

Data Science · Database · Performance

The author details a workflow for processing Google Street View coverage datasets using a high-performance AMD Ryzen 9 workstation.

By leveraging DuckDB, Parquet, and QGIS, the project converts 647 MB of JSON data into a spatially-sorted 85 MB Parquet file to analyze global geospatial patterns and update frequencies from 2003 to 2025.

Bf-Tree: modern read-write-optimized concurrent larger-than-memory range index

github.com · 28 Jan

Database · Performance · Rust

Bf-Tree is a modern, high-performance range index developed by Microsoft Research (MSR) designed for concurrent, larger-than-memory workloads.

Written in Rust, it provides a read-write-optimized data structure that maintains efficiency even when the dataset exceeds physical RAM. The project emphasizes reliability and correctness through advanced testing methodologies, including deterministic concurrency testing using shuttle and random operation sequence fuzzing. It supports major operating systems like Linux, Windows, and macOS, offering a comprehensive suite for developers to implement scalable database indexing. Benchmark tools and contribution guidelines are provided to facilitate community involvement and performance verification.

Local Indexing to reduce tool calling and token usage

tedhaley.ca · 12 Oct

macOS · Performance · AI Agents

Pensieve is a free, open-source Mac tool that locally indexes files, repositories, worktrees and coding-agent sessions for semantic or exact search, then supplies relevant passages and line references through MCP.

It reduces agent tool calls and token use by searching before grep. In a 144-run Claude Code benchmark, it found the right file in 131 runs versus 123 with grep, averaged 2.0 versus 3.4 tool calls, used 16% fewer tokens, and cost 18% less per lookup. Indexing remains on-device, with optional AI.

We could save petabytes of cache storage with Zstandard and Pingora

blog.cloudflare.com · 1 Sept

Cloud Computing · Distributed Systems · Performance

Cloudflare’s Cache Transcoding prototype uses Zstandard inside Pingora to compress eligible text assets before storing and transferring them through cache tiers.

At zstd level 3, assets became roughly 2.8 times smaller, substantially increasing effective cache capacity and reducing inter-data-center bandwidth, while adding modest CPU costs. The system excludes already-compressed and unsuitable responses.

Intent to Ship: JPEG XL

hacks.mozilla.org · 24 Aug

Algorithms · Performance · Rust

Firefox intends to ship JPEG XL using jxl-rs, a secure, performant Rust decoder developed by Google Research to replace a 100,000-line multithreaded C++ implementation.

JPEG XL adds progressive rendering and excels at lossless compression, while AVIF generally produces smaller web-quality photos. Developers should benchmark both formats using representative images and target quality levels.

Bun has an open PR adding shared-memory threads to JavaScriptCore

github.com · 20 Jun

Artificial Intelligence · Distributed Systems · Performance

A technical overview of an experimental implementation of shared-memory threads in JavaScriptCore.

It enables multiple JIT-optimized JavaScript threads to share a single heap, allowing direct multi-threaded concurrency without message passing. The pull request adds a new Thread API, atomics on object properties, and synchronization primitives like Lock and Condition, currently gated behind a compile-time flag.

Performance of Rust Language [pdf]

github.com · 25 May

C++ · Performance · Rust

This talk from C++Russia 2026 analyzes Rust as a systems programming language.

It evaluates performance trade-offs for its safety guarantees, compares idiomatic Rust against C++, identifies specific performance strengths and weaknesses, and outlines best practices for optimizing Rust code.

Zero-copy protobuf and ConnectRPC for Rust

medium.com · 17 Apr

Performance · Rust · Software Architecture

The author has open-sourced buffa and connect-rust, two Rust crates designed to modernize RPC development.

Buffa provides a zero-copy, editions-aware Protocol Buffers implementation, while connect-rust is a Tower-based ConnectRPC framework. Developed using AI-assisted methods, these tools prioritize performance, memory efficiency, and improved safety over standard implementations like Prost.

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