Answer by chux - Reinstate Monica for Fastest way to find a string delimited...
Fastest way to find a string delimited by two wordscheck_delim() can be linearly made faster by taking advantage that a string ends with the first null character.No need for 2 checks of lengths on each...
View ArticleFastest way to find a string delimited by two words
Motivated by this question, I created a simple benchmark for investigating what is the fastest way to extract a substring given two delimiting words:#! /usr/bin/env perluse feature qw(say);use...
View Article