[prev in list] [next in list] [prev in thread] [next in thread] 

List:       kfm-devel
Subject:    Re: kdeinit
From:       David Faure <david () mandrakesoft ! com>
Date:       2000-04-05 9:11:25
[Download RAW message or body]

On Wed, Apr 05, 2000 at 11:33:39AM +0200, Simon Hausmann wrote:
> Hi,
> 
> I remember that David (or was it Waldo) brought up the idea to use kdeinit
> to speed up konqueror startup (when started via kfmclient) . 
> 
> AFAIK David changed kfmclient to launch konqueror through klauncher
> (-> kdeinit -> exec( "konqueror" ) ), right?
Yup. With some help from Waldo :)

And I didn't realise that it would be a lot better using
a shared lib for konqueror, well I know that but I forgot to create
the lib. Thanks for thinking about that ;-)

> I did some little testing and changed Makefile.am to put all code into
> libkonqueror (including main() ) and copied libkonqueror.so to
> konqueror.so in my $prefix/lib . That made kdeinit dlopen konqueror.so
> (instead of exec'ing konqueror) .
Didn't you have to change konqueror.desktop too ?
(I thought you had to specify the libname there - unless perhaps kdeinit
figures it out from the app name).

> It might be easily possible that I got the wrong impression, but for me it
> made the startup approx. 2/3 seconds faster.
> 
> Could that be possible?

Definitely. Loading all those shared libs takes time, and kdeinit 
frees you from that. Commit :)

Speaking about kdeinit:
yesterday I got a big problem with it, since everything it starts
goes into ~/.xsession-errors, and since we start a lot of things from
kdeinit, well it filled up my $HOME partition and it took me
a while to find out (I kept deleting stuff, and the free space kept
disappearing since the file was keeping growing !!). Morality,
let's reduce the debug output :-)

And speaking about konqueror startup time:
it starts the cookiejar on startup. Shouldn't we do that only when
the HTML view is loaded for the first time ? I surely don't need
a cookie jar for browsing my local drive !
Perhaps putting that in KHTMLFactory (whatever it's called) is the answer ?

-- 
David FAURE
david@mandrakesoft.com, faure@kde.org
http://home.clara.net/faure/
KDE, Making The Future of Computing Available Today

[prev in list] [next in list] [prev in thread] [next in thread] 

Configure | About | News | Add a list | Sponsored by KoreLogic