Underneath every ClickHouse data type there is exactly one data structure: a flat array of trivially-copyable elements. UInt64 is an array of UInt64. String is a flat character …
Every string-scanning loop in every database has the same shape: look at one byte, decide something about it, advance. It is the shape we all write because it is obviously correct …