[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]
Re: Xtoolwait - significantly speedup your .xsession
Harvey J. Stein wrote:
>
> Amos Shapira writes:
> > Hi,
> >
> > I just got around to install xtoolwait and I must recommand this to
> > everyone who runs more than one client in their .xsession. This thing
> > made my .xsession finish running faster than I could say "RedHat
> > sucks" (:-).
> >
> > There's a Debian package for it (that's how I found about it), dunno
> > about RedHat. The authors home page (with a link to download the
> > source) is at http://www.hacom.nl/~richard/
>
> The low tech version is to do things like:
>
> ( sleep 5 ; xterm ) &
> ( sleep 10 ; xclock ) &
> ( sleep 15 ; xosview ) &
>
> in your .xsession, putting the clients you want first with the
> shortest sleeps, and experimenting with the sleep times to get each
> one to start after the previous one comes up.
That's far from being a replacement. Here you wait 5 seconds
before running the next client, while with xtoolwait I get all
clients up and running within about 1-2 seconds (will try to
remember to time this next time I login).
Xtoolwait's trick is to wait for the program to map its first
top-level window before exiting (and letting the next client to
run). I suspect this helps because by the time the client maps
its first window it finished loading its image the disk and use
the CPU for the startup code, so you avoid unnecessary competition
over the cpu and the disk.
--Amos
--Amos Shapira | "Of course Australia was marked for
133 Shlomo Ben-Yosef st. | glory, for its people had been
chosen
Jerusalem 93 805 | by the finest judges in England."
ISRAEL amos@dsi.co.il | -- Anonymous
Follow-Ups:
References: