travisstaloch / simdjzon

simdjson port to zig
107 stars 5 forks source link

Fix is_incomplete #18

Closed Validark closed 1 year ago

Validark commented 1 year ago

The old version would always subtract all 255's from the input Chunk, which means bytes would never be identified as incomplete. The new version properly checks the last 3 bytes. The new version also works for different Chunk sizes.

travisstaloch commented 1 year ago

Thanks for catching this. Nice work! :rocket: