Skip to content
Opensource internals
  • Posts

Performance

How tmux Parses Escape Sequences Fast

Oct 11, 2026 11 min read Jay Hubbert

The single hottest path in tmux is not the redraw — it is the parser. Every byte that any program in any pane produces goes through tmux’s own VT parser, and a yes or a cat of a …

TmuxPerformanceInternalsInput

Read more →

How PostgreSQL Speeds Up Hash Joins

Oct 11, 2026 31 min read Jay Hubbert

A hash join is the simplest join algorithm in the database: build a hash table from the inner relation, then probe it once per outer row. There is no sort, no merge, no nested loop …

PostgresPerformanceExecutorInternals

Read more →

How PostgreSQL Waits for Locks

Oct 6, 2026 49 min read Jay Hubbert

Every lock in PostgreSQL is a bet. When a backend wants a resource that somebody else has, it has to choose: burn CPU waiting, or go to sleep and let the kernel schedule somebody …

PostgresPerformanceConcurrencyInternals

Read more →

How PostgreSQL Locks Buffers Without LWLocks

Oct 2, 2026 42 min read Jay Hubbert

Every time PostgreSQL reads a page it does two things: it pins the shared buffer that holds the page, and it takes a content lock on that buffer so that nobody rewrites the bytes …

PostgresPerformanceStorageConcurrencyInternals

Read more →

How PostgreSQL Allocates Memory Fast

Sep 19, 2026 40 min read Jay Hubbert

Every C program that wants to be fast needs to be fast at allocating memory. PostgreSQL allocates memory in the tightest loop imaginable: a hash join probes its hash table once per …

PostgresPerformanceMemoryInternals

Read more →

← Newer Page 1 of 5 Older →

© 2026 Jay Hubbert · Built with Hugo 0.168.0

RSS ·