alibaba / hessian2-codec

hessian2-codec it is a complete C++ implementation of hessian2 spec
Apache License 2.0
26 stars 10 forks source link

optimize string decoding #11

Closed wbpcode closed 3 years ago

wbpcode commented 3 years ago

Optimized the decoding process for string. Reduced memory copy overhead by reading contiguous memory. Use branch-less method to determine the length of utf-8 strings.

Since a standard benchmark is missing, I can't determine the exact performance improvement. However, from what I've seen in practice, it has reduced the string parsing overhead significantly.

wbpcode commented 3 years ago

Some features of c++17 are used. Maybe we need to update the requested compiler version in README.