[ 
https://issues.apache.org/jira/browse/ARROW-3536?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=16667666#comment-16667666
 ] 

Antoine Pitrou commented on ARROW-3536:
---------------------------------------

> Your fast ASCII approach, and it is indeed almost as fast as a version using 
> vector instructions, is something I would qualify as being SWAR (SIMD Within 
> A Register) so it is SIMD technically speaking

Indeed. But using standard C++ operators instead of clumsily-named intrinsics 
is what makes it vastly more readable IMHO.

In other words, using a dedicated intrinsic-abstracting library (e.g. xsimd or 
Vc) would probably help. It would also help portability.


> [C++] Fast UTF8 validation functions
> ------------------------------------
>
>                 Key: ARROW-3536
>                 URL: https://issues.apache.org/jira/browse/ARROW-3536
>             Project: Apache Arrow
>          Issue Type: New Feature
>          Components: C++
>            Reporter: Wes McKinney
>            Priority: Major
>             Fix For: 0.13.0
>
>
> [~lemire] discusses this topic in 
> https://lemire.me/blog/2018/05/16/validating-utf-8-strings-using-as-little-as-0-7-cycles-per-byte/
> In Java there is also
> https://lemire.me/blog/2018/10/16/validating-utf-8-bytes-java-edition/



--
This message was sent by Atlassian JIRA
(v7.6.3#76005)

Reply via email to