bytedance / sonic-cpp

A fast JSON serializing & deserializing library, accelerated by SIMD.
Apache License 2.0
835 stars 101 forks source link

feat: support sse and neon #51

Closed xiegx94 closed 1 year ago

xiegx94 commented 1 year ago

Main changes

Support sse and neon simd.

xiegx94 commented 1 year ago

fix #50

liuq19 commented 1 year ago

can we have a fallback code to support all other env?

xiegx94 commented 1 year ago

can we have a fallback code to support all other env?

But sonic has copied origin json string and pad it to avoid crossing memory boundary by simd codes.

liuq19 commented 1 year ago

can we have a fallback code to support all other env?

But sonic has copied origin json string and pad it to avoid crossing memory boundary by simd codes.

performance may be not import for fallback impl,we can just make a very naive fallback impl as simdjson

xiegx94 commented 1 year ago

56 is better