grep extremely slow

Rich Felker dalias at aerifal.cx
Fri Apr 7 07:24:03 UTC 2006


I've observed that busybox grep is still 20x slower than gnu grep,
even with the regcomp issue I reported a while back fixed. The problem
seems to be the bb_get_chunk_from_file function, which reads a single
character at a time from the file using getc. Not sure what's the best
way to fix it without breaking semantics needed by other applets..
anyone care to take a look?

Rich




More information about the busybox mailing list