Mate Nagy <mn...@port70.net> writes:

> On Wed, May 19, 2010 at 12:09:33PM +0200, Premysl Hruby wrote:
>> > Conclusion: 0.7 seconds is somewhat noticeable lag. It's another
>> > question whether it's worth the effort to write the C program, but
>> > hey, it's been done already.
>> 
>> Well, I (and others possibly) have no concern about cache miss, my files
>> in $PATH doesn't changes every five minutes :-)
>  I have cache misses rather often, and the delay *is* annoying. I'd be a
> happy user of the C rewrite.

I'm wondering, would it speed up the program if the script spawned
a background process for every entry in $PATH?  I imagine quite a lot of
the runtime is spent waiting for I/O, so simple threading would be a
win.  That said, I don't think I've ever tried parallelising a shell script.

-- 
\  Troels
/\ Henriksen

Reply via email to