ashvardanian / StringZilla

Up to 10x faster strings for C, C++, Python, Rust, and Swift, leveraging SWAR and SIMD on Arm Neon and x86 AVX2 & AVX-512-capable chips to accelerate search, sort, edit distances, alignment scores, etc 🦖
https://ashvardanian.com/posts/stringzilla/
Apache License 2.0
1.92k stars 64 forks source link

Refactor Str and SplitIterator to use `sz_string_view_t` #108

Open ashvardanian opened 4 months ago

ashvardanian commented 4 months ago

In python/lib.c several classes store a combination of a pointer and length. It's worth refactoring the file to use the sz_string_view_t structure.