FS#10271 - Compose table cache for faster X11 application starts
Attached to Project:
Arch Linux
Opened by Dawid Wróbel (cromo) - Thursday, 24 April 2008, 14:55 GMT
Last edited by Jan de Groot (JGC) - Thursday, 15 May 2008, 12:33 GMT
Opened by Dawid Wróbel (cromo) - Thursday, 24 April 2008, 14:55 GMT
Last edited by Jan de Groot (JGC) - Thursday, 15 May 2008, 12:33 GMT
|
Details
Description:
I just read this blog post http://kdemonkey.blogspot.com/2008/04/magic-trick.html which reffers to https://bugs.freedesktop.org/show_bug.cgi?id=3104. This simple trick really does work and speed ups application starting a bit and also saves some memory. So therefore I ask if this can be enabled by default globally in a system, as SuSE does (in /var/cache/libx11/compose). Is this not KISS-comppatible in any way? |
This task depends upon
mkcomposecache "en_US.UTF-8" "/usr/X11R6/lib/X11/locale/en_US.UTF-8/Compose" \
"var/X11R6/compose-cache" "/usr/X11R6/lib/X11/locale/en_US.UTF-8/Compose"
Where do you propose we do this? Doing it in the PKGBUILD for all locales may be confusing and messy. Suggestions?
I would suggest to just leave it up to the user. Providing a script that reads /etc/locale.gen and makes calls accordingly should be simple to be implemented but should probably also go to aur/community as X.org always will work without this extra.
My 2 cents.
Someone could then kindly write this up in the wiki somewhere, and we're done - I'd say close with a "Won't Implement"
To implement this, I would suggest the following:
- add package mkcomposecache
- add script to package that reads /etc/locale.gen and generate compose cache for these locales.
Generating these compose caches is up to the user in that case.
I don't see the need to generate a compose cache from our distribution. It needs hacks to get the cache built and I haven't seen any application using it anyways. This is up to the user to generate if the user wants to use it.