↓ Skip to main content

“Of course, GNU Grep is about three times as fast.”

Ben Hoytbenhoyt.com ↗

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.