KConfig sync speedup patch rev 1

Ian Reinhart Geiser geiseri at yahoo.com
Tue Sep 9 14:09:38 BST 2003


-----BEGIN PGP SIGNED MESSAGE-----
Hash: SHA1

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.

	The idea is that a stat and compair of QDateTime is faster than the reparse.  

	Thanks
	-ian reinhart geiser
- -- 
- --:Ian Reinhart Geiser <geiseri at yahoo.com>
- --:Public Key: http://geiseri.myip.org/~geiseri/publickey.asc
- --:Public Calender: http://geiseri.myip.org/~geiseri/publicevents.ics
- --:Jabber: geiseri at geiseri.myip.org
- --:Be an optimist -- at least until they start moving animals in 
- --:   pairs to Cape Canaveral. ~ Source Unknown
-----BEGIN PGP SIGNATURE-----
Version: GnuPG v1.2.1 (GNU/Linux)

iD8DBQE/XdEXPy62TRm8dvgRAu8JAJ9BruJ9p2FkCMrjujSS7pkscEu6JwCbB8oj
HppkcHnWs1fnubhF93NyVGY=
=J2N6
-----END PGP SIGNATURE-----
-------------- next part --------------
A non-text attachment was scrubbed...
Name: kconfigsync.patch
Type: text/x-diff
Size: 3439 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20030909/bc0a0abf/attachment.patch>


More information about the kde-core-devel mailing list