Re: [dev] [dmenu] Cache on start option?

From: Roger <rogerx_AT_sdf.lonestar.org>
Date: Wed, 21 Oct 2009 13:00:25 -0800

On Wed, 2009-10-21 at 16:00 -0400, Kris Maglione wrote:
> On Wed, Oct 21, 2009 at 11:35:26AM -0800, Roger wrote:
> >1) Start DWM
> >2) After start of DWM, execute DMenu -cache (to cache/scan all bin
> >folders into $HOME/.dmenu).
> >3) Somebody finally executes DMenu to choose an application immediately
> >vs. waiting for DMenu to also cache (all bin folders).
>
> Start dwm from a script.

Already done via .xinitrc.

> >VS. Currently,
> >
> >1) Start DWM
> >2) Wait for DMenu to be executed by somebody, then somebody has to sit
> >and wait for DMenu to cache bin folders before choosing their
> >application.
>
> It takes a few miliseconds.

... depending on size of bin folders.

/bin $ du -kh --max-depth=0
7.9M

/sbin $ du -kh --max-depth=0
21M

/usr/bin $ du -kh --max-depth=0
551M

/usr/sbin $ du -kh --max-depth=0
43M

... of course, rm -f /usr/bin/* would speed things up. ;-)

-- 
Roger
http://rogerx.freeshell.org
Received on Wed Oct 21 2009 - 21:00:25 UTC

This archive was generated by hypermail 2.2.0 : Wed Oct 21 2009 - 21:12:02 UTC