Re: [dev] [hack] Having dmenu provide hints about current selected entry

From: Anselm R Garbe <garbeam_AT_gmail.com>
Date: Fri, 26 Nov 2010 16:36:44 +0100

On 26 November 2010 16:30, Connor Lane Smith <cls_AT_lubutu.com> wrote:
> On 26 November 2010 15:27, Anselm R Garbe <garbeam_AT_gmail.com> wrote:
>> Well the question is if the bottleneck is the input writer or dmenu
>> reading the input. The problems I remember from the past where all
>> related to the input writer (for example dmenu_path taking some time
>> to create it's output) but not dmenu creating the input item list.
>
> That's fair. We could do some testing to see whether dmenu reading a
> *lot* of data from a pipe is noticeably slow, or whether it's just
> dmenu_path's sorting (which obviously we can't do anything about).

With vanilla dmenu

seq 100000 | dmenu

works instantaneously for me. I see some 2s lack if I increase to seq
1000000 | dmenu though.
But is 1M items a usual scenario? I kind of doubt that and the 2s
penalty doesn't sound too bad imho.

Cheers,
Anselm
Received on Fri Nov 26 2010 - 16:36:44 CET

This archive was generated by hypermail 2.2.0 : Fri Nov 26 2010 - 16:48:02 CET