From kde-core-devel Tue Sep 09 19:44:57 2003 From: Waldo Bastian Date: Tue, 09 Sep 2003 19:44:57 +0000 To: kde-core-devel Subject: Re: KConfig sync speedup patch rev 1 X-MARC-Message: https://marc.info/?l=kde-core-devel&m=106313677916167 -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 On Tuesday 09 September 2003 15:09, Ian Reinhart Geiser wrote: > Hi, > At n7y I worked out this patch with the help of david. It seems to speed > up some apps when i measure them with calltree. The issue was that before > this patch every time you call sync the config file is reparsed. This > patch causes the config file not to be reparsed unless it has changed on > disk since the last write. > > In kmail with calltree without it I seem to see 10% of startup time spent > in KConfigINIBackend::sync(), where as after the patch it only spends about > 7%.... Im still not sure if these numbers are accurate, so im hopeful > others can test, modify this patch. I have committed a slightly modified version of your patch. If kmail spends so much time in sync() though it probably means that sync() gets called way too often in the first place. Cheers, Waldo - -- bastian@kde.org -=|[ SuSE, The Linux Desktop Experts ]|=- bastian@suse.com -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.0.6 (GNU/Linux) Comment: For info see http://www.gnupg.org iD8DBQE/Xi25N4pvrENfboIRAviYAJ0WoBDbuz71qbl/IKpRomGb37tFEQCfQm7+ 4dDtcxWsruyCQdlYl5XoP/A= =Sb7D -----END PGP SIGNATURE-----