r/ProgrammerTIL • • Sep 19 '17
Other TIL Unix-based systems provide a dictionary of 235k+ newline-separated words in /usr/share/dict/words
This list can be copied between projects and used for everything from Scrabble board-playing AIs to spellcheckers to regex golfing playgrounds!
119
Upvotes
View all comments
Show parent comment
2
u/o11c Sep 20 '17
For single-file searches, all tools will perform the same unless they're really badly written.
But ag is PCRE-based, so it is necessarily badly written. Why the hell are you using it if you care at all about performance?