ClickHouse Packs Short Strings Into Hash Table Keys: No Allocation Per Key
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…
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…
t-strings produce a Template object — literal strings plus Interpolation objects — not a formatted string, so the pieces stay inspectable and reusable.
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.