1BRC merykitty’s magic SWAR: 8 lines of code explained in 3k words(questdb.io)
questdb.io
1BRC merykitty’s magic SWAR: 8 lines of code explained in 3k words
https://questdb.io/blog/1brc-merykittys-magic-swar/
https://questdb.io/blog/1brc-merykittys-magic-swar/
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).