Code for my blog posts on string search algorithms:
- Beating Textbook Algorithms in String Search - branch blog-post-1
- Can You Optimise These 2 Lines of Code? - branch blog-post-2
- An Interesting Case of Loop Unrolling - branch blog-post-3
Requires Java 8 or higher (recommended: GraalVM (20.0.0 CE, based on OpenJDK 11)).
- Download / install SBT: https://www.scala-sbt.org/download.html
- Clone this repository:
git clone [email protected]:linasm/string-search-algos.git
cd string-search-algos
sbt
- From SBT console:
jmh:run
to run the benchmarks