See also the port of Lemire's SIMD UTF8 validation in java:
https://github.com/AugustNagro/utf8.java/blob/master/src/mai...
Which is made possible since openjdk 16 (the Vector API) however the results aren't yet impressive, and the openjdk devs are currently optimizing the SIMD generation for it