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

Vectorized and performance-portable Quicksort

opensource.googleblog.com · 16 Sept

Algorithms · Performance · Open Source

Google researchers released Apache2-licensed open-source C++ code for a portable SIMD Quicksort that sorts numeric arrays up to 10 times faster than C++ std::sort.

Using Highway, compress-store and permute techniques, it supports six instruction sets across x86, Arm and RISC-V, reaching about 1 GB/s and outperforming architecture-specific algorithms.

Wasmi 2.0 - Engineering of the Fastest Wasm Interpreters

wasmi-labs.github.io · 1 Sept

Low-Level Programming · Performance · Testing

Wasmi 2.0, an efficient WebAssembly interpreter, is now released after eight months of development.

It is about 2.2× faster than Wasmi 1.0, with competitive startup performance and smaller binaries via new features. The overhaul adds threaded dispatch, accumulator registers, faster instance access, lock-free CodeMap, stable fuel metering, deterministic profile support, and an improved CLI. Wasmi 3.0 targets remaining WebAssembly 3.0 proposals.

TurboKV: Insanely fast Rust key-value store

github.com · 29 Aug

Database · Performance · Rust

TurboKV 0.6 is an async embedded key-value database for Rust, offering atomic batches, ordered and streaming scans, configurable WAL durability, compression, caching, and background compaction.

Its fast, durable, and paranoid modes trade throughput for persistence guarantees. Benchmarks show strong performance, especially with batching, while AES-enabled builds require architecture-specific RUSTFLAGS.

Additive Blending on the Nintendo 64

phoboslab.org · 15 May

C · Low-Level Programming · Performance

Nintendo 64 typically struggled with additive blending because its RDP lacks color clamping, causing wrap-around artifacts.

By rendering effects into a 32-bit buffer at reduced intensity and using the RSP to convert and clamp these to a 16-bit display buffer, developers can achieve high-quality additive blending effects efficiently.

Why I Joined OpenAI

brendangregg.com · 7 Feb

Artificial Intelligence · Cloud Computing · Performance

Brendan Gregg, a renowned expert in computer performance engineering and former Intel Fellow, has announced joining OpenAI as a Member of Technical Staff.

His primary focus is optimizing ChatGPT performance and reducing the massive environmental and financial costs associated with AI datacenters. Gregg describes the current state of AI as a unique engineering frontier where traditional performance methods must be reinvented to match the extreme scale of growth. After interviewing with several tech giants, he chose OpenAI due to its concentration of talent and the deep societal adoption of its products. He highlights how AI has transitioned from a technical gimmick to an essential daily tool for diverse users, including hairstylists and small business owners. Gregg aims to apply his extensive experience in cloud computing and linux performance tools like eBPF to create more efficient AI architectures, comparing the mission to his childhood dream of building advanced sci-fi supercomputers.

Replacing Protobuf with Rust to go 5 times faster

pgdog.dev · 22 Jan

Performance · PostgreSQL · Rust

Lev Kokotov discusses a significant performance optimization in PgDog, a PostgreSQL scaling proxy, by replacing Protobuf serialization with direct Rust-to-C bindings.

While PgDog uses libpg_query for SQL parsing, the team discovered that Protobuf overhead was a major bottleneck. By leveraging bindgen and AI-assisted wrapper generation, they implemented direct mapping between Rust structs and the Postgres AST. This architectural shift resulted in a 5x improvement in query parsing and a 10x speed boost in deparsing. The solution utilizes a recursive algorithm that ensures high CPU cache locality and minimal memory allocation, providing a 25% overall performance gain in benchmarks and lowering operational costs for the proxy.

Without benchmarking LLMs, you're likely overpaying

karllorey.com · 20 Jan

Artificial Intelligence · Large Language Models · Performance

Relying on generic benchmarks for LLMs can lead to significant overspending, as shown by a case study where switching models saved 80% on API costs.

By benchmarking actual prompts against over 100 models using tools like OpenRouter and an LLM-as-judge scoring system, developers can identify the optimal balance of quality, cost, and latency. The Pareto Frontier methodology helps visualize models that provide the highest performance for a given price point, ensuring efficiency in production applications.

High-Performance DBMSs with io_uring: When and How to use it

arxiv.org · 4 Dec

Database · Linux · Performance

This research paper explores the integration of the Linux io_uring interface into modern database management systems (DBMS) to achieve high-performance, low-overhead I/O operations.

The study addresses the limitations of traditional Linux I/O interfaces by evaluating io_uring in two primary scenarios: storage-bound buffer management and high-throughput data shuffling in network-bound analytical workloads. The authors analyze advanced features like registered buffers and passthrough I/O to determine their impact on end-to-end performance. Their findings suggest that simple integration is insufficient; instead, specific architectural choices are required to see tangible gains. By applying their derived guidelines to PostgreSQL, the researchers achieved a 14% performance improvement, demonstrating the effectiveness of their optimization strategies for I/O-intensive systems.

Subminute CI

engineering.moab.com · 27 Nov

CI/CD · DevOps · Performance

Moab reduced median CI time to under one minute during a weekend monorepo migration and maintained it while tripling its test count.

For its million-line ERP codebase, the team combined parallel test execution, persistent disk and database caching, fast 16-vCPU runners, and numerous eliminations and tool upgrades. Tests are always run in full, distributed using timing data and scheduling heuristics, while unaffected checks are skipped. The result shortens development feedback loops and serves as a measure of engineering alignment.

Why building a Rust LSP is hard

rust-glancer.github.io · 16 Sept

Performance · Programming Languages · Open Source

The article explains why building Rust LSPs is difficult: they must deliver useful answers from partial, changing code while managing synchronization, concurrency, metadata, workspace discovery, resilient parsing, indexing, and cursor-aware features.

It contrasts rust-analyzer’s lazy, incremental salsa architecture with Rust Glancer’s eager, filesystem-backed design, emphasizing trade-offs and user-intent guessing.

l: A new runtime for k and q

lv1.sh · 7 Jul

Database · Performance · SQL

The l platform offers full compatibility with k4, q, and qSQL, enabling seamless integration without code rewrites.

It natively supports columnar tables, dictionaries, partitions, and splays, ensuring high performance and immediate interoperability for existing infrastructure.

Tracing HTTP Requests with Go's net/HTTP/httptrace

blainsmith.com · 26 May

Backend · Go · Performance

Go’s net/http/httptrace allows developers to instrument outgoing HTTP requests without external dependencies.

By attaching a ClientTrace to a context.Context, you can monitor granular lifecycle events like DNS resolution, TLS handshakes, and connection reuse. This standard library tool is highly efficient for debugging latency and connection issues in production with minimal overhead.

Wirth's Revenge

jmoiron.net · 5 Feb

Performance · Programming Languages · Computer Science

The article explores 'Wirth's Law,' which posits that software complexity increases faster than hardware gains can compensate for.

While Niklaus Wirth originally lamented features like GUIs and icons as wasteful, the author argues that some 'Wirth tradeoffs' are justified by improved accessibility. However, the rise of Large Language Models (LLMs) presents a dangerous new phase. Unlike cloud computing, which abstracted infrastructure for efficiency, LLMs are being used by laypeople to solve simple problems with massive computational waste. The author warns that relying on AI to perform tasks rather than write efficient scripts leads to 'thought-terminating' solutions. This shift risks eroding human skill and creating a runtime complexity growth curve that hardware advances may never overcome, potentially signaling a 'bad' Wirth tradeoff that prioritizes convenience over fundamental technical understanding.

getsentry/sentry

github.com · 3 Oct

Monitoring · Observability · Performance

Sentry is a developer-focused debugging platform for detecting, tracing, and resolving software issues.

It combines error tracking, performance monitoring, logs, traces, replays, uptime insights, and AI-assisted investigation across many programming languages and frameworks through official SDKs. Its broad ecosystem helps teams diagnose failures faster and improve application reliability.

Two-Stack Sliding-Window Aggregation

orlp.net · 2 Oct

Algorithms · Performance · Computer Science

The two-stack algorithm maintains sliding-window aggregates for associative operations without requiring an inverse.

It stores incoming values and their aggregate, while a second stack holds reverse cumulative aggregates for elements being removed; combining the two gives each window result in O(1) time. Rebalancing costs O(w) only periodically, yielding amortized O(1) per operation and O(w) memory. It supports minimum, quantiles, HyperLogLog, and more, while limiting NaN, infinity, and floating-point errors to windows containing them.

The Rust React Compiler is now native in Vite

blog.master.dev · 4 Sept

Frontend · JavaScript · Performance

Outlyne migrated its 1,036-file React Router codebase from the Babel-based React Compiler to oxc’s native Rust implementation, cutting compiler time from 14.3s to 0.81s and total builds from 22.1s to 9.3s.

Native support also improves JavaScript compatibility, aligns linting with builds, simplifies Vite configuration, and reduces CI costs.

IBM Unveils Next Generation Dual-Architecture Processor for IBM Z and LinuxONE

newsroom.ibm.com · 24 Aug

Hardware · Performance · Operating Systems

IBM announced a dual-architecture processor for future IBM Z and LinuxONE systems, developed with Arm.

Built on a 2 nanometer process, it will execute Arm and IBM Z instructions concurrently, supporting Arm-native Linux alongside z/OS and Linux. The chip includes 11 cores, AI inference accelerators, I/O acceleration, large cache, and enterprise security, reliability, and scalability.

Python Polars Cheatsheet (based on our O'Reilly book)

opensource.posit.co · 18 Aug

Data Science · Performance · Python

This cheatsheet introduces Polars, a fast Python library for DataFrame-based data transformation, analysis, and visualization.

It covers Series, DataFrame, and LazyFrame structures; eager and optimized lazy execution; Arrow-compatible data types; file and cloud I/O; expressions, filtering, joins, aggregation, reshaping, temporal and nested data, plotting, styling, and distributed execution with Polars Cloud.

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