GConf merged tree with split translations



Hey,
	I've finally gotten around to committing some code[1] to implement the
conlusions wrt. GConf which we came to as a result of Lorenzo's
excellent analysis[2]

	Basically, the markup backend (in "merged tree" mode) now stores
translations of schema descriptions in separate per-locale files. The
idea is to load the entire GConf database in one go to avoid lots of
seeking, whilst also avoiding the overhead of loading the descriptions
of keys for locales which will never be used during the session.

	Hopefully, we'll switch this on for the defaults database for GNOME
2.14. It'll need some further profiling and testing, though.

	To test it out, build and install GConf head (or apply the patch below)
and run: 

  $> gconf-merge-tree $(prefix)/etc/gconf/gconf.xml.defaults

	The directory should then look like:

drwxr-xr-x  55 markmc markmc    4096 Nov 12 16:18 apps
drwxr-xr-x   3 markmc markmc    4096 Nov 12 16:18 desktop
-rw-r--r--   1 markmc markmc  141968 Nov 17 20:12 %gconf-tree-af.xml
-rw-r--r--   1 markmc markmc   33759 Nov 17 20:12 %gconf-tree-am.xml
-rw-r--r--   1 markmc markmc  573836 Nov 17 20:12 %gconf-tree-ar.xml
-rw-r--r--   1 markmc markmc  494313 Nov 17 20:12 %gconf-tree-az.xml
...
-rw-r--r--   1 markmc markmc 3052624 Nov 25 10:19 %gconf-tree.xml
...
drwxr-xr-x   5 markmc markmc    4096 Nov 12 16:18 schemas
drwxr-xr-x   8 markmc markmc    4096 Nov 12 16:18 system

	Hopefully, no-one should notice any difference aside from a shorter
login time. Please file bugs if any issues do crop up.

Thanks,
Mark.

[1] - http://www.gnome.org/~markmc/code/gconf-merged-tree-split-translations.patch
[2] - http://www.gnome.org/~lcolitti/gnome-startup/analysis/



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