bug-grep
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

bug#23269: Multi-threaded operation, mbrtowc, and "untangle" script [was


From: Paul Eggert
Subject: bug#23269: Multi-threaded operation, mbrtowc, and "untangle" script [was Re: bug#23269...]
Date: Sun, 24 Apr 2016 22:50:30 -0700
User-agent: Mozilla/5.0 (X11; Linux x86_64; rv:38.0) Gecko/20100101 Thunderbird/38.6.0

Zev Weiss wrote:
> [Strictly speaking even in the default "single-threaded" mode it *is* in fact
> actually multi-threaded, but there's only one search thread, so output 
> ordering
> is unaffected.  In theory even this could allow a slight performance 
> improvement
> by overlapping pattern-matching with directory traversal and prefetching in 
> the
> master thread, but I'd guess it's probably negligible in most cases, and isn't
> really the goal of the patches.]

In the common case where a command like 'grep -r unusual' reads many files but
outputs few lines, I would think multiple search threads could work pretty well
even if the output is required to be deterministic.





reply via email to

[Prev in Thread] Current Thread [Next in Thread]