Conference | Live Schedule | Talks | Get your ticket | Slides | Set your timezone
SIMD Substring Search
788819.jpg)
Denis Yaroshevskiy
On Day 3 at 9:00 (CET/Berlin) in Track B [Opal Room and online]
Despite being widely available on modern hardware, vectorization remains a dark art known to only a select few. For the last few years I've been working to change that — explaining, with pretty pictures, how to implement different SIMD algorithms.
Searching for a subsequence within a sequence is the next one to tackle (no prior SIMD knowledge required).
We start at the "interview problem" and examine how typical solutions perform — spoiler: poorly. Then we look at the standard library and see how it compares. Spoiler: the standard library should be doing a better job than it does.
Finally, we roll up our sleeves and write some SIMD using the EVE library: first `memchr`, then `memcmp`, and finally `eve::algo::search` — a production-quality subsequence in a sequence search.
Please login to comment