5 ms·
> I could spend a lot of time on a Boyer Moore string matching algorithm Could you? It's like an hour to copy/paste a reference implementation and set up unit
by qes 6y ago
> I could spend a lot of time on a Boyer Moore string matching algorithm
Could you?
It's like an hour to copy/paste a reference implementation and set up unit tests. Maybe an hour or two fine tuning the implementation for your language and benchmarking some use cases.
I'd been using the same C# Boyer-Moore impl for like 15 years, and happened to have just recently updated it for Span support. I doubt I have 8 hours into it in total, and it's thoroughly benchmarked and tested.
- okareaman 6y agoYou're missing my point. Pick coding up something that for you would be an egregious waste of your time on this earth.