Recently Marko Topolnik made length(varchar) SQL function in #QuestDB faster with the following SWAR code. Previously it was using a much slower UTF-8 parsing routine.
Does Java have support for SIMD? I guess that with AVX 256/512 bit registers you can get even more speed up for this function.
Marko Topolnik didn't have enough of it after 1BRC? 😂
Core Database Engineer at QuestDB
8moThe code may be found here: https://github.com/questdb/questdb/pull/4442