fast_strstr
fast_strstr copied to clipboard
A fast substitution to the stdlib's strstr() sub-string search function.
Solve issue #6 from @beave : "Returns NULL when string is present?"
Hello) my test example ` char *str = "GET /image/name_image.webp HTTP/1.1" "Host: host.domain.com:8088" "Connection: keep-alive" "Cache-Control: max-age=0" "DNT: 1" "Upgrade-Insecure-Requests: 1" "User-Agent: Mozilla/5.0 (Windows NT 6.1; Win64; x64) AppleWebKit/537.36 (KHTML,...
# Linux fastpfor 3.5.0-41-generic x86_64 GNU/Linux # model name : Intel(R) Xeon(R) CPU E5-1620 0 @ 3.60GHz warming up estimating clock resolution... mean is 1.267408 us (640001 iterations) found 150223...