fury
fury copied to clipboard
perf(python): optimize pystr deserialize perf
What does this PR do?
This PR implemented an optimized version of PyUnicode_FromUCS1/Fury_PyUnicode_FromUCS2 for faster performance by :
- replace max char check using SIMD
- Cast ucs2 array to ucs1 array by SIMD
Related issues
Does this PR introduce any user-facing change?
- [ ] Does this PR introduce any public API change?
- [ ] Does this PR introduce any binary protocol compatibility change?
Benchmark
cc @penguin-wwy @pandalee99 @theweipeng