1BRC merykitty’s magic SWAR: 8 lines of code explained in 3k words
questdb.io
questdb.io
The general class of techniques used is called SWAR -- SIMD Within A Register, because it uses the regular ALU instruction set to achieve the effect of SIMD (Single Instruction, Multiple Data).
The code in question was submitted by Quan Anh Mai (@merykitty on GitHub).