A Go publication by Nolan Keir

Go, beneath
the surface.

Deep dives into the Go runtime, concurrency, performance, and the trade-offs behind clean abstractions.

Latest

All articles
  1. Four of five loops had no bounds check to remove

    The compiler eliminated every check in four spellings of the same sum. The folklore hint changed nothing, and the one surviving check cost less than the harness's own error.

    Performance and measurement
  2. One constructor, five call sites, two verdicts

    `-gcflags=-m` printed "escapes to heap" for the constructor and "does not escape" for half the places that call it. The package boundary had nothing to do with it.

    Performance and measurement
  3. The 30% is 46%, and it stops dead at 80 bytes

    Go 1.27's size-specialised allocation is worth up to 46% on the pointer-containing path, not the 30% announced — and from 96 bytes up it is worth nothing.

    Performance and measurement

Series

All series

Topics

Every topic

Arrow keys to move, Enter to open.