You are not logged in.
Hi,
I simply read this here: http://kdemonkey.blogspot.nl/2008/04/magic-trick.html
and thought i'd share it since it's still true.
type: "mkdir -p ~/.compose-cache/"
Now any application will start a bit faster. I measured Dolphin and that one starts 1/10th faster! Quite significant if you ask me
Cheers,
Mark
Offline
Thanks!
Moving from Arch Discussion to GNU/Linux Discussion.
aur S & M :: forum rules :: Community Ethos
Resources for Women, POC, LGBT*, and allies
Offline
Add to the wiki?
EDIT: You probably want to edit your title and add the key word, "KDE" so folks know.
Last edited by graysky (2012-07-13 22:06:51)
CPU-optimized Linux-ck packages @ Repo-ck • AUR packages • Zsh and other configs
Offline
Wow thanks for the tip it did speed up applications a bit.
Offline
I measured Dolphin and that one starts 1/10th faster!
May I ask, how did you measured startup time?
Offline
Its seems only for KDE
Last edited by anonymous_user (2012-07-14 14:58:30)
Offline
interesting. I'll give it a try
Asus M4A785TD-V ;; Phenom II X4 @ 3.9GHz ;; Ripjaws 12GB DDR3-1600 ;; 128GB Samsung 830 ;; MSI GTX460 v2 w/ blob ;; Arch Linux + KDE 4.x
Offline
Its seems only for KDE
Works here with GTK as well.
ᶘ ᵒᴥᵒᶅ
Offline
Wow that makes quite a difference opening Firefox on XMonad.
I've recently found startup to be slow, which I blamed on updates, but I realize now that it might be because I recently installed a giant ~/.XCompose file.
Offline
WRT this being "KDE-only", I think it might be helpful to state that it should work by opening any Qt application that has a text entry control. I did it with VBox, and I'm in a mostly-GTK environment.
EDIT: …or perhaps it really is toolkit-agnostic…I dunno.
Last edited by MrCode (2012-07-14 20:28:27)
Offline
KDE
Guys, click the link OP gave. There's more information there. I'll give a hint, read litemotiv's post.
aur S & M :: forum rules :: Community Ethos
Resources for Women, POC, LGBT*, and allies
Offline
^ I was too quick to focus on the mention of KDE and Kubuntu. Its good to know it works for Qt/KDE/Gtk.
Offline
I think it worked for me on Gnome-shell, but I dont know, could be just placebo
Offline
Guys just look at at the man page for Compose. This isn't even desktop related as far as I can tell.
http://www.x.org/archive/X11R7.5/doc/ma … ose.5.html
Last edited by egan (2012-07-15 23:27:34)
Offline
@egan: The article in the first post has this:
For those curious about what is going on here, this enables an optimization which Lubos (of general KDE speediness fame) came up with some time ago and was then rewritten and integrated into libx11. Ordinarily on startup applications read input method information from /usr/share/X11/locale/<your locale>/Compose. This Compose file is quite long (>5000 lines for the en_US.UTF-8 one) and takes some time to process. libX11 can create a cache of the parsed information which is much quicker to read subsequently, but it will only re-use an existing cache in /var/cache/libx11/compose or create a new one in ~/.compose-cache if the directory already exists.
Offline
I'm amazed! I run Openbox standalone. I tried this out, created ~/.compose-cache/ and started Virtualbox so that a file was created in that directory. After that all programs started much faster. I always shutdown the computer at night, and when I booted up this morning, all programs I used (Firefox, Thunderbird, Spotify, Thunar, Lxterminal, Leafpad, Geany) started slower again. I restarted them several times, and it was not only the first time after reboot. Then I started Virtualbox - and after that all the other was much faster again.
Is there a command one can put in autostart that will have the same effekt, instead of having to start Virtualbox for this to take effekt?
Offline
Maybe add this to the wiki?
Offline
Interesting, I will have to try this. /wonders why it isn't enabled by default in KDE
Edit: tried it with Opera. As far as I can tell it creates no perceptible improvement... But do please keep in mind that I'm posting from a Thinkpad 600E, with an almighty Pentium II processor and 192 MB of RAM (plus 128 MB of zram cache and no swap space at all). Results may be somewhat better on faster computers.
Edit again: okay, tried it on KDE on my netbook. The improvement in load times is completely imperceptible. However, it does seem to put a dent in the chronically awful Qt4 redraw performance, since resizing stuff under KWin no longer has me shuffling about and twiddling my thumbs in impatience.
Last edited by Gullible Jones (2012-07-20 20:26:21)
Offline
Maybe add this to the wiki?
Done, https://wiki.archlinux.org/index.php/KD … on_startup
Maybe someone can review it.
Offline
It should not be on a KDE-page, but on a more general page.
I use it now on LXDE with openbox, and from the manpage for compose it is clear that it works for all WM/DE environments.
Disliking systemd intensely, but not satisfied with alternatives so focusing on taming systemd.
clean chroot building not flexible enough ?
Try clean chroot manager by graysky
Offline
FYI, this is archlinux bug report for this Bug 10271
Offline
Works for anyone on XFCE?
Offline
Holy he.... it indeed works
EDIT1. I use some GTK applications
Last edited by Shinryuu (2012-09-11 02:38:10)
Offline
Thanks for the tip. Noticeable on qt apps.
Offline
Spent a week using this and I still have an empty ~/.compose-cache. Does anyone know which GTK apps work with it?
6EA3 F3F3 B908 2632 A9CB E931 D53A 0445 B47A 0DAB
Great things come in tar.xz packages.
Offline