Re: [dev] dmenu_path rewrite in C

From: Troels Henriksen <athas_AT_sigkill.dk>
Date: Wed, 19 May 2010 12:13:58 +0200

Mate Nagy <mnagy_AT_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
Received on Wed May 19 2010 - 10:13:58 UTC

This archive was generated by hypermail 2.2.0 : Wed May 19 2010 - 10:24:02 UTC