Re: Removing xrdb for 10% startup win?
- From: Erwann Chenede <erwann chenede sun com>
- To: desktop-devel-list gnome org
- Cc: Owen Taylor <otaylor redhat com>, Ghee Teo sun com, Ross Burton <ross burtonini com>
- Subject: Re: Removing xrdb for 10% startup win?
- Date: Mon, 29 Aug 2005 15:14:29 +0200
Hi all,
Ross Burton wrote:
On Mon, 2005-08-29 at 10:24 +0100, ghee teo wrote:
Look like some cool stuffs you have done here!
Just want to point out that John Rice is doing some performance analysis
work on GNOME startup time also, see his blog:
http://blogs.sun.com/roller/page/jmr/20050826
The good question here is why is xrdb being executed 11 times?
After a quick look at gnome-settings-xrdb.c
It seems that the style_set_cb callback, which ultimately spawn the xrdb
command, is called multiple times.
This happens because the style_set_cb callback is connected to the
GtkWidget signal "style-set"
which receive multiple "style-set" signals (8 or 9) initially for the
same theme.
One solution to avoid these multiple calls would be to monitor the gtk
theme Xsettings property
as gtk does (via "notify::gtk-theme-name") or the
/desktop/gnome/interface/gtk_theme gconf key directly
instead of relying on the "style-set" signal.
This way only complete theme change would trigger a xrdb change.
Cheers,
Erwann
The first one (spawned by gnome-session) looks like a xrdb call
in .gnomerc or some other file, but the 10 calls by
gnome-settings-daemon is caused by "grdb" and is surely a bug...
Ross
Erwann Chénedé,
Desktop Group, Sun Microsystems
[ I speak for myself, not for my employer ]
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]