You are not logged in.

#1 2012-07-13 19:43:30

markg85
Member
Registered: 2009-06-27
Posts: 149

Performance tip to load any application faster.

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 smile

Cheers,
Mark

Offline

#2 2012-07-13 20:45:34

fsckd
Forum Fellow
Registered: 2009-06-15
Posts: 4,173

Re: Performance tip to load any application faster.

Thanks! smile
Moving from Arch Discussion to GNU/Linux Discussion.


aur S & M :: forum rules :: Community Ethos
Resources for Women, POC, LGBT*, and allies

Offline

#3 2012-07-13 21:50:16

graysky
Wiki Maintainer
From: :wq
Registered: 2008-12-01
Posts: 10,597
Website

Re: Performance tip to load any application faster.

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 packagesZsh and other configs

Offline

#4 2012-07-13 22:02:41

LinuxFrenzy
Member
From: Long Beach, CA USA
Registered: 2012-05-24
Posts: 33

Re: Performance tip to load any application faster.

Wow thanks for the tip it did speed up applications a bit.

Offline

#5 2012-07-14 13:56:58

gedgon
Member
From: Poland
Registered: 2011-01-27
Posts: 95

Re: Performance tip to load any application faster.

markg85 wrote:

I measured Dolphin and that one starts 1/10th faster!

May I ask, how did you measured startup time?

Offline

#6 2012-07-14 14:58:21

anonymous_user
Member
Registered: 2009-08-28
Posts: 3,059

Re: Performance tip to load any application faster.

Its seems only for KDE sad

Last edited by anonymous_user (2012-07-14 14:58:30)

Offline

#7 2012-07-14 15:20:04

boast
Member
Registered: 2010-09-28
Posts: 219

Re: Performance tip to load any application faster.

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

#8 2012-07-14 16:04:29

litemotiv
Forum Fellow
Registered: 2008-08-01
Posts: 5,026

Re: Performance tip to load any application faster.

anonymous_user wrote:

Its seems only for KDE sad

Works here with GTK as well.


ᶘ ᵒᴥᵒᶅ

Offline

#9 2012-07-14 17:48:03

egan
Member
From: Mountain View, CA
Registered: 2009-08-17
Posts: 273

Re: Performance tip to load any application faster.

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

#10 2012-07-14 20:26:05

MrCode
Member
Registered: 2010-02-06
Posts: 373

Re: Performance tip to load any application faster.

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. hmm

Last edited by MrCode (2012-07-14 20:28:27)

Offline

#11 2012-07-15 02:15:35

fsckd
Forum Fellow
Registered: 2009-06-15
Posts: 4,173

Re: Performance tip to load any application faster.

KDE

Guys, click the link OP gave. There's more information there. I'll give a hint, read litemotiv's post. wink


aur S & M :: forum rules :: Community Ethos
Resources for Women, POC, LGBT*, and allies

Offline

#12 2012-07-15 04:41:21

anonymous_user
Member
Registered: 2009-08-28
Posts: 3,059

Re: Performance tip to load any application faster.

^ I was too quick to focus on the mention of KDE and Kubuntu. Its good to know it works for Qt/KDE/Gtk.

Offline

#13 2012-07-15 12:44:55

thoho180192
Member
Registered: 2012-05-08
Posts: 57

Re: Performance tip to load any application faster.

I think it worked for me on Gnome-shell, but I dont know, could be just placebo

Offline

#14 2012-07-15 23:26:10

egan
Member
From: Mountain View, CA
Registered: 2009-08-17
Posts: 273

Re: Performance tip to load any application faster.

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

#15 2012-07-16 08:05:56

kalio
Member
Registered: 2012-07-08
Posts: 8

Re: Performance tip to load any application faster.

@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

#16 2012-07-17 15:19:06

Lennie
Member
From: Sweden
Registered: 2011-10-12
Posts: 146

Re: Performance tip to load any application faster.

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

#17 2012-07-20 17:19:45

kalle97
Member
Registered: 2012-07-18
Posts: 80

Re: Performance tip to load any application faster.

Maybe add this to the wiki?

Offline

#18 2012-07-20 19:43:37

Gullible Jones
Member
Registered: 2004-12-29
Posts: 4,863

Re: Performance tip to load any application faster.

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. smile

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

#19 2012-07-24 08:02:44

ilpianista
Fellow developer
Registered: 2007-10-06
Posts: 568
Website

Re: Performance tip to load any application faster.

kalle97 wrote:

Maybe add this to the wiki?

Done, https://wiki.archlinux.org/index.php/KD … on_startup

Maybe someone can review it.

Offline

#20 2012-07-24 10:52:17

Lone_Wolf
Forum Moderator
From: Netherlands, Europe
Registered: 2005-10-04
Posts: 11,925

Re: Performance tip to load any application faster.

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.


(A works at time B)  && (time C > time B ) ≠  (A works at time C)

Offline

#21 2012-08-16 11:21:42

dikei
Member
Registered: 2010-12-08
Posts: 18

Re: Performance tip to load any application faster.

FYI, this is archlinux bug report for this Bug 10271

Offline

#22 2012-09-04 11:23:56

philomath
Member
Registered: 2012-04-04
Posts: 11

Re: Performance tip to load any application faster.

Works for anyone on XFCE?

Offline

#23 2012-09-11 02:37:10

Shinryuu
Member
From: /dev/urandom
Registered: 2010-02-27
Posts: 339

Re: Performance tip to load any application faster.

Holy he.... it indeed works
EDIT1. I use some GTK applications

Last edited by Shinryuu (2012-09-11 02:38:10)

Offline

#24 2012-09-11 05:03:01

dodo3773
Member
Registered: 2011-03-17
Posts: 818

Re: Performance tip to load any application faster.

Thanks for the tip. Noticeable on qt apps.

Offline

#25 2012-09-18 00:35:36

ConnorBehan
Package Maintainer (PM)
From: Long Island NY
Registered: 2007-07-05
Posts: 1,359
Website

Re: Performance tip to load any application faster.

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

Board footer

Powered by FluxBB