[PATCH] Patch to not fork/exec xkbcomp on X Server initialization

Li, Yan yanli at infradead.org
Tue Mar 24 23:58:36 PDT 2009


This is the patch that I wrote for Moblin as part of the efforts of
fast-boot to save some load time of X server: xkbcomp outputs will be
cached in files with hashed keymap as names (using SHA1). This saves
boot time for around 1s on commodity netbooks.  It is made against
1.6.0.

I haven't read Paulo's latest patch that uses SHA1 as file names until
I've finished my own (though I do have read early versions of his
patch).  Interestingly that we've employed similar idea.

Comparing to Paulo's patch, this one is much simpler, with the goal
that touch as few things as possible. And xkbcomp's output will be
stored in /var/lib/xkb/ instead of somewhere under /usr/.

In this patch there are also corrections to wrongly used TAB for
indention of codes related to this function. If you don't like it I
can move them to another standalone patch.

I understood the difficulty of merging functions like this into
mainstream. Or if we need to add an option to make this behaviour
optional, rather than enabled by default.  I'd like to follow on this
until people is happy with it.

Welcome comments.

-- 
Li, Yan
-------------- next part --------------
A non-text attachment was scrubbed...
Name: cache-xkbcomp-output-for-fast-start-up.patch
Type: text/x-diff
Size: 10672 bytes
Desc: not available
URL: <http://lists.x.org/archives/xorg/attachments/20090325/683a3741/attachment.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 197 bytes
Desc: Digital signature
URL: <http://lists.x.org/archives/xorg/attachments/20090325/683a3741/attachment.pgp>


More information about the xorg mailing list