“Of course, GNU Grep is about three times as fast.”
Pike’s matcher is 35 lines of C. The Go port is 43 lines. GNU grep beats both by about 3x, and neither handles Unicode. Short code is pretty. Fast code is long.
“Of course, GNU Grep is about three times as fast.”
Pike’s matcher is 35 lines of C. The Go port is 43 lines. GNU grep beats both by about 3x, and neither handles Unicode. Short code is pretty. Fast code is long.