Bug 255525 - grep performance problem
Summary: grep performance problem
Status: New
Alias: None
Product: Base System
Classification: Unclassified
Component: bin (show other bugs)
Version: CURRENT
Hardware: Any Any
: --- Affects Only Me
Assignee: freebsd-bugs (Nobody)
Depends on:
Reported: 2021-05-01 09:52 UTC by Edward Tomasz Napierala
Modified: 2021-05-10 09:23 UTC (History)
3 users (show)

See Also:


Note You need to log in before you can comment on or make changes to this bug.
Description Edward Tomasz Napierala freebsd_committer 2021-05-01 09:52:05 UTC
The sysutils/debootstrap port seems to trigger a pathological corner case in BSD grep, where it's about two orders of magnitude slower than GNU grep.

To reproduce: grab https://people.freebsd.org/~trasz/debian_dists_buster_main_binary-amd64_Packages and do:

$ grep -E '^$|^Architecture:|^Filename:|^MD5sum:|^Package:|^Priority:|^SHA256:|^Size:|^Version:|^Depends:|^Pre-Depends:'