shepmaster / jetscii

A tiny library to efficiently search strings for sets of ASCII characters and byte slices for sets of bytes.
Apache License 2.0
113 stars 21 forks source link

Add ByteRanges #26

Closed ghost closed 3 years ago

ghost commented 6 years ago

This adds support for finding bytes in a set of ranges of bytes.


I hereby license this contribution under the dual MIT/Apache-2.0 license, allowing licensees to choose either at their option.

shepmaster commented 6 years ago

Some unnamed jerk just merged some code that causes conflicts here ;-)

RReverser commented 5 years ago

What is required for this PR to move forward? I could really use range search for some ASCII character class checks.

shepmaster commented 5 years ago

I think it would be acceptable for you to grab this PR, make the changes, and then submit a new PR...

RReverser commented 5 years ago

I played with this PR as-is - it works, but found out that SIMD version it actually quite slower than regular comparisons, so now I'm not even sure if it's worth it :/