Address grievously inefficient password/group handling code in FreeBSD `pw` command
From @stoller:
Every change to the group file does a text search from the beginning of the file to the one that is being changed. No db file that hashes the entries. Then consider that every change is to the last entry in the file when we are adding accounts. The file is currently 2100 lines long, and the number of users (have to search each line for the user) is about 6000.
The last sentence is a little simplistic …
But you get the idea?