UTF-8 Validation with the Vector API (Performance)

Paul Sandoz paul.sandoz at oracle.com
Fri Mar 5 17:24:06 UTC 2021


Hi August,

Thank you for bringing this to the list (I saw your messages on twitter and was gonna suggest you do just that but you got there before me).

This is exactly the kind of thing we are looking for to exercise the API and find performance issues. I shall take a closer look.

We have been methodically working through some performance issues based on other use cases, I think we will get there.

Paul,

> On Mar 4, 2021, at 3:49 PM, August Nagro <augustnagro at gmail.com> wrote:
> 
> Hello,
> 
> A while back I implemented simd-json's UTF-8 validation using the
> vector API. It could be considered the first step towards implementing
> simd-json completely with Java.
> 
> The simd-json developers seem interested, which is cool. The only
> problem is that it's very slow, and I don't have the knowledge to make
> it faster. Hopefully I can get away with saying it's the Vector api's
> fault and not mine. :)
> 
> If anyone has suggestions or is interested in grocking the code
> (there's not much of it), this is the github repo:
> https://github.com/AugustNagro/utf8.java
> 
> Cheers,
> 
> August



More information about the panama-dev mailing list