[PATCH] xkb: Check and load precompiled .xkm during startup if available
Peter Hutterer
peter.hutterer at who-t.net
Mon Mar 15 23:18:07 PDT 2010
On Tue, Mar 16, 2010 at 12:04:53PM +0600, Mikhail Gusarov wrote:
>
> Twas brillig at 10:12:14 16.03.2010 UTC+10 when peter.hutterer at who-t.net did gyre and gimble:
>
> >> New 'precompiled' subdir is added to xkb data dir, allowing to
> >> pre-compile keymaps to be loaded when server starts and hence avoid
> >> running xkbcomp, saving a bit of time.
>
> PH> Good idea. Do you have any numbers on how much time this actually
> PH> saves?
>
> I can't measure it -- see below.
>
> PH> IIRC we only run xkbcomp once at the moment and then re-used the
> PH> cached values. Is skipping this one run beneficial?
>
> Not for my case, I don't have xkbcomp at all, as it needs Xlib (which I
> managed to avoid entirely so far).
>
> PH> What happens if xkeyboard-config is updated after an xkm has been
> PH> precompiled? Do the users need to recompile? This is my main worry,
> PH> it'll make triaging of nonworking keyboard layouts quite tricky.
>
> Yes. Probably this need to be handled, so it was more RFC actually, than
> actual patch.
Could you just replace xkbcomp with a shell script that copies the xkm files
into the right directory?
Cheers,
Peter
More information about the xorg-devel
mailing list