Comment by Rendello
1 year ago
A few years ago I came across the article "SIMD-friendly algorithms for substring searching". The "Generic SIMD" section into and example is small and quite understandable. I modified it to implement an LZ77 sliding window in Zig.*
http://0x80.pl/notesen/2016-11-28-simd-strfind.html
* Or rather, I tried my best. I burnt out on that project because I kept jumping back and forth between making a proper DEFLATE implementation or something bespoke. The SIMD stuff was really tough and once I got it "working", I figured I got all I needed from the project and let it go.
https://github.com/rendello/compressor/blob/dev/src/str_matc...
No comments yet
Contribute on Hacker News ↗