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

Better JIT for Postgres

github.com · 4 Mar

C · Database · Performance

pg_jitter is a lightweight JIT compilation provider for PostgreSQL 14–18.

It replaces slow LLVM compilation with three alternative backends—sljit, AsmJit, and MIR—reducing overhead from milliseconds to microseconds. This makes JIT beneficial for OLTP workloads and wide-row queries by significantly accelerating expression evaluation and tuple deforming without excessive compilation latency.

femtolisp: A lightweight, robust, scheme-like Lisp implementation

github.com · 23 Feb

Performance · Programming Languages · Computer Science

Femtolisp is a high-performance, lightweight Scheme dialect implemented in under 1,000 lines of C.

It features a bytecode compiler, compacting garbage collection, and a robust API. Designed for simplicity and elegance, it supports proper tail recursion, C data types, and UTF-8, ranking among the fastest non-native-compiled Scheme implementations ever developed.

Many Small Queries Are Efficient in SQLite

sqlite.org · 31 May

Database · Performance · SQLite

The common perception that executing a high volume of SQL statements (such as 200 per page) is a sign of poor design is challenged when using SQLite.

While traditional client/server databases like MySQL or PostgreSQL suffer from latency due to network round-trips for every query, SQLite operates within the same process address space as the application. This architectural difference reduces query latency to simple function calls, making hundreds of small queries highly efficient. The Fossil version control system, which powers the SQLite website, utilizes this approach to maintain clean code and separation of responsibilities between data retrieval and display logic without sacrificing performance, often rendering complex dynamic pages in under 25 milliseconds.

llvm/llvm-project

github.com · 27 Sept

Low-Level Programming · Performance · Programming Languages

LLVM is a modular, reusable toolkit for building highly optimized compilers, optimizers, and runtime environments.

Its core processes intermediate representations into object files and includes assemblers, disassemblers, and bitcode tools. Clang supports C, C++, Objective-C, and Objective-C++, while related components include libc++ and LLD.

SIMD in the 90s: Programming Intel's Pentium MMX

pikuma.com · 12 Aug

Hardware · Low-Level Programming · Performance

MMX, introduced with Pentium MMX in 1997, brought accessible integer SIMD to mainstream x86 PCs through eight 64-bit registers aliased to x87 registers.

Packed arithmetic, saturation, comparisons, and shifts accelerated multimedia, though EMMS and CPUID were required. MMX lacked floating-point SIMD and had register conflicts; SSE/SSE2 superseded it, making MMX a pivotal transition.

Too much discussion of the XOR swap trick

heather.cafe · 13 Apr

Performance · Programming Languages · Computer Science

The XOR swap trick, swapping two variables without a temporary one, is a common programming curiosity.

While often discussed, it is generally inferior to standard swapping methods. Modern compilers optimize away the XOR operations for local variables, and it is inefficient or risky when used with pointers or floating-point numbers. It remains an interesting academic exercise rather than a practical optimization.

Show HN: Forkrun – NUMA-aware shell parallelizer (50×–400× faster than parallel)

github.com · 27 Mar

Linux · Low-Level Programming · Performance

forkrun is a high-performance, drop-in replacement for GNU Parallel and xargs that optimizes shell data processing.

Leveraging NUMA-aware design and lock-free architectures, it scales linearly across modern CPUs, delivering 50x–400x speedups. Its self-tuning mechanism, zero-dependency bash distribution, and efficient memory management make it ideal for high-frequency, low-latency workloads on multi-socket hardware.

Parallel Perl – Autoparallelizing interpreter with JIT

perl.petamem.com · 18 Mar

Performance · Programming Languages · Computer Science

PetaMem introduces pperl, a high-performance Perl 5 interpreter built in Rust.

Utilizing Just-In-Time (JIT) compilation, Rayon-based data parallelism, and a pre-compiled bytecode cache, pperl achieves significant speed improvements over the standard Perl interpreter. It maintains high compatibility with existing Perl 5 code, including an object-oriented shell (psh) and advanced native FFI support.

I Made Zig Compute 33 Million Satellite Positions in 3 Seconds. No GPU Required

atempleton.bearblog.dev · 20 Jan

Performance · Python

The author developed astroz, a high-performance SGP4 satellite propagation library written in Zig that achieves up to 13 million propagations per second.

By leveraging Zig's first-class SIMD support, branchless hot paths, and comptime precomputations, the implementation significantly outperforms existing libraries in time-batched workloads. The project provides both native Zig performance and easy-to-use Python bindings via pip.

raphlinus/nibnib

github.com · 30 Oct

Algorithms · Performance

nibnib is an image format optimized for extreme decompression speed on constrained devices such as the RP2350.

It stores RGB 565 images using a 256-entry palette of 32-bit color deltas: each input byte decodes two pixels by adding a palette delta to the duplicated previous pixel, achieving 4bpp and roughly six cycles per pixel. Floyd-Steinberg error diffusion improves quality, while encoding is much slower and quality-focused; the compact format has minimal metadata and supports decoder-preserving encoder improvements.

Maxwell: A new kind of model that sits between code and hardware

heymaxwell.ai · 19 Oct

Artificial Intelligence · Performance · Marketing

Maxwell is a code execution model that observes programs at runtime, rewrites their binaries for the specific machine and data, and formally proves the optimizations equivalent to the original.

It runs on CPUs and GPUs, nearly halving LTX-2.5’s 4K video generation time from 4:09 to 2:14. Demonstrations also cut Whisper transcription from 106.23 to 49.82 seconds and NetworkX betweenness centrality from 61.44 to 17.50 seconds, with identical outputs.

AI Chip Architectures

jepeake.com · 23 Aug

Artificial Intelligence · Hardware · Performance

The article surveys AI accelerator architectures shaped by the memory wall: NVIDIA GPUs prioritize programmability, TPUs and Trainium compiler-driven systolic arrays, AMD emphasizes memory capacity and open standards, Cerebras and Groq use SRAM-centric designs for latency, and each makes distinct scaling and software trade-offs.

NVIDIA leads deployment, while specialized systems win targeted workloads such as frontier training, inference, or batch-one latency.

Running Doom on Our Custom CPU and Going Viral

armaangomes.com · 20 Jul

Hardware · Low-Level Programming · Performance

Engineers successfully ported the classic video game DOOM to a custom-built, logic-gate-level CPU deployed on an FPGA.

By integrating DDR3 memory, implementing custom instruction and data caches, and optimizing both hardware and software, they achieved a playable 15-20 FPS, demonstrating deep technical mastery of CPU architecture, memory management, and low-level debugging.

Show HN: Clx – Compile Lua to Native Executables Through C++20

github.com · 11 Jul

Performance · Programming Languages · Software Architecture

clx is a cross-platform ahead-of-time Lua compiler that generates standalone native executables using modern C++ toolchains.

It emphasizes predictable performance, fast startup times, and small binary sizes by leveraging compilers like Clang, GCC, and MSVC. Supporting Lua 5.5, clx provides a C++ API for modular development and native performance without bytecode interpreter overhead.

Pandoc Lua Filters

pandoc.org · 3 Jul

Performance · Programming Languages · Computer Science

Pandoc Lua filters allow for efficient AST manipulation without external dependencies.

By embedding an internal Lua interpreter, these filters avoid the overhead of JSON serialization. They provide extensive control over document traversal, element transformation, and metadata handling, offering a powerful, integrated, and performant alternative to traditional external filters for document processing and conversion.

Stealing from Biologists to Compile Haskell Faster

iankduncan.com · 30 May

Algorithms · Backend · Performance

The author optimized GHC's ApplicativeDo compiler feature, which was previously disabled by default due to high latency.

By identifying logical bounds and leveraging properties shared with RNA-folding algorithms—specifically the nested, non-crossing constraints of dynamic programming—the author reduced the O(n³) complexity, making the optimal scheduling algorithm practical for real-world Haskell code.

Introduction to spherical harmonics for graphics programmers

gpfault.net · 12 Apr

Artificial Intelligence · Performance · Mathematics

This article explains how to use spherical harmonics for real-time graphics, focusing on approximating continuous functions on a sphere.

It covers the mathematical foundations, normalization, basis functions, and practical applications like lighting and irradiance. The author provides code examples and discusses common challenges, such as ringing artifacts and deringing techniques.

Faster Than Dijkstra?

systemsapproach.org · 9 Feb

Algorithms · Performance · Computer Science

A recent breakthrough in network theory claims to surpass Dijkstra's algorithm by breaking the sorting barrier to improve performance bounds.

However, practical implementation in routers remains unlikely because current network sizes don't reach scaling limits where the difference is significant, and other factors like failure detection dominate routing convergence times.

API Performance Testing: How to Design Realistic Tests

dev.to · 17 Sept

Monitoring · Performance · Testing

Effective performance testing models realistic user journeys, workload patterns, think time, ramp-up, and business-derived traffic targets.

Load, stress, endurance, spike, volume, and scalability tests reveal bottlenecks and capacity limits. Production-like environments, representative data, controlled external dependencies, network latency, capable load generators, and metrics such as p95, errors, throughput, and resources make results actionable.

KDE Plasma 6.7 released

kde.org · 16 Jun

Linux · Performance · Software Architecture

Plasma 6.7 introduces significant updates, including per-screen virtual desktops, enhanced audio controls, and the new Union theming system based on CSS.

This release improves performance, adds HDR and color management support, simplifies Global Theme switching, and refines the overall user experience, including Discover software center enhancements and better printing management.

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