Re: FVWM: high level examples

From: Dominik Vogt <dominik.vogt_at_gmx.de>
Date: Wed, 6 Mar 2002 19:29:03 +0100

On Wed, Mar 06, 2002 at 12:09:22PM -0500, Dan Espen wrote:
> Gregg Dameron <gregg.dameron_at_lmco.com> writes:
> > Mikhael Goikhman wrote:
> >
> > > Nowadays M4 preprocessing is not needed to write an ideal configuration.
> > > m4 is pretty limited, it may be useful for simple things, but for more
> > > complex needs you should write shell/perl scripts that create an fvwm
> > > configuration on the fly, and read their output using PipeRead.
> >
> > I have used FvwmM4 to conditionally show/hide items in my TaskBar's Start men
> > u
> > tree on the fly. I have often wondered if using PipeRead with a script is
> > "better", but I wonder if the PipeRead approach results in a greater number o
> > f
> > Unix processes being forked, and so might be visibly slower on a highly
> > CPU-bound system (as ours are). Can anyone confirm or deny?
>
> I doubt either approach could take much CPU time.
>
> In one case, m4 needs to be invoked, in the other case
> a shell is invoked. I guess the trade off would be in
> the amount of processing power each uses.

Don't underestimate the time executing commands from a shell
takes. When I first wrote the fvwm-menu-directory script, it
called grep/sed/ls repeatedly and slowed down to a crawl for
large directories (up to about 30 seconds to generate the menu for
the /dev directory).

Bye

Dominik ^_^ ^_^

 --
Dominik Vogt, dominik.vogt_at_gmx.de
Reply-To: dominik.vogt_at_gmx.de
--
Visit the official FVWM web page at <URL: http://www.fvwm.org/>.
To unsubscribe from the list, send "unsubscribe fvwm" in the body of a
message to majordomo_at_fvwm.org.
To report problems, send mail to fvwm-owner_at_fvwm.org.
Received on Wed Mar 06 2002 - 12:27:12 GMT

This archive was generated by hypermail 2.3.0 : Mon Aug 29 2016 - 19:37:52 BST