[PATCH] reduce kde session start latency

Dirk Mueller mueller at kde.org
Mon Dec 29 15:31:29 GMT 2003


Hi, 

kcminit loads all of kcmkonqhtml just for checking if it eventually has to run 
nspluginscan. Thats a major overhead in memory and startup latency. According 
to Maksim's machine it accounts to 0.8s of session startup. 

As I didn't manager to make the existing khtml_plugins.desktop use one 
kde_module for initializing and another one for the kcontrol gui (if there is 
a way, please let me know), I had to create a new one. By not giving a Name= 
to the desktop this apparently hides it in the kcontrol menu (??). I'm not 
very sure if thats correct though. 

See below, please review. patch which removes Init= from the old 
khtml_plugins.desktop and the init_nsplugins() from the kcontrol module is 
omitted as obvious.


Dirk
-------------- next part --------------
A non-text attachment was scrubbed...
Name: kcm_nsplugins.cpp
Type: text/x-c++src
Size: 1864 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20031229/211cd6b1/attachment.cpp>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: startup_nsplugins.desktop
Type: application/x-desktop
Size: 236 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20031229/211cd6b1/attachment.bin>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: nsplugins.diff
Type: text/x-diff
Size: 1043 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20031229/211cd6b1/attachment.diff>


More information about the kde-core-devel mailing list