Re: Removing xrdb for 10% startup win?



On Sun, 28 Aug 2005, Michael Banck wrote:

> On Sun, Aug 28, 2005 at 11:37:31AM +0100, Gustavo J. A. M. Carneiro wrote:
> >   So how about GNOME doing this instead:
> >
> > 	1- stat(~/.Xresources) --> if fail return
> > 	2- stat(~/.Xresources.compiled)
> > 	3- if "~/.Xresources.compiled does not exist" OR
> > "~/.Xresources.compiled older than ~/.Xresources":
> > 		3.a) run "cpp ~/.Xresources -o ~/.Xresources.compiled"
> > 	4- Run "xrdb -nocpp ~/.Xresources.compiled"
>
> Why not grep for any preprocessor statements, and only run cpp if some
> are present?

Or simply use make with cpp-produced dependency rules!  15
minutes of hacking.


> Michael

--behdad
http://behdad.org/



[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]