Re: Removing xrdb for 10% startup win?



On Sat, 2005-08-27 at 20:43 -0400, Owen Taylor wrote:
> cpp is built into GCC these days, so is not lightweight by any means.
> 
> I don't know if there is a 10k cpp implementation out there, but if
> there is, then switching X.org to use that might by the right course in
> this area.

People have said this but I don't see it:

$ which cpp
/usr/bin/cpp
$ ll /usr/bin/cpp
lrwxrwxrwx  1 root root 7 2005-08-21 15:01 /usr/bin/cpp -> cpp-4.0
$ ll /usr/bin/cpp-4.0
-rwxr-xr-x  1 root root 90232 2005-08-21 19:51 /usr/bin/cpp-4.0
$ ldd /usr/bin/cpp-4.0
        linux-gate.so.1 =>  (0xffffe000)
        libc.so.6 => /lib/tls/i686/cmov/libc.so.6 (0xb7dee000)
        /lib/ld-linux.so.2 (0xb7f2d000)

Using "strace -e open" doesn't show cpp opening at runtime any other
libraries.

What is xrdb/cpp *doing* in the 10% of the startup time?  It doesn't
perform any I/O as gnome-settings-daemon does that instead, and streams
the contents of the files into xrdb's stdin.

Ross
-- 
Ross Burton                                 mail: ross burtonini com
                                          jabber: ross burtonini com
                                     www: http://www.burtonini.com./
 PGP Fingerprint: 1A21 F5B0 D8D0 CFE3 81D4 E25A 2D09 E447 D0B4 33DF

Attachment: signature.asc
Description: This is a digitally signed message part



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