Skip to content
Opensource internals
  • Posts

Strings

ClickHouse Packs Short Strings Into Hash Table Keys: No Allocation Per Key

Oct 21, 2026 14 min read Jay Hubbert

ClickHouse never stores a std::string in a hash table cell. It splits keys into size classes and packs strings of up to 24 bytes into plain integers, so your GROUP BY…

ClickhouseInternalsHash tableStringsPerformance

Read more →

CPython's Template String Implementation in C (t-strings): Interpolation as Data

Oct 20, 2026 11 min read Jay Hubbert

t-strings produce a Template object — literal strings plus Interpolation objects — not a formatted string, so the pieces stay inspectable and reusable.

PythonCpythonInternalsStringsTemplate

Read more →

CPython Interns Strings

Jan 22, 2026 6 min read Jay Hubbert

CPython keeps a global table of immortal static strings and a per-interpreter dict of mortal runtime ones, so equal strings can be compared by pointer.

PythonCpythonInternalsPerformanceStrings

Read more →

© 2026 Jay Hubbert · Built with Hugo 0.168.0

RSS ·