[PATCH] fix #47996
Michael Brade
brade at kde.org
Thu Nov 7 01:28:04 GMT 2002
Hi!
Coolo said fix it, so the attached patch fixes #47996, please review. I added
a method checkUpdate(dir) that checks if dir should be updated or delayed.
slotFileDirty now delays all the update events it gets by 500ms (that's the
STAT frequency) and drops all other events for the same file during this
time. I don't know why FAM is flooding KDirLister that much but during this
500ms delay I got 100 (!) FAM events. Phew. The only bad thing is that my
patch adds another QDict (the timers) to KDirListerCache. Ok, it's not too
much, but anyways, it's additional bloat because of FAM going mad :-/
Also, slotFileDirty was the only method that updated files and directories
even if they were in itemsCached. Fixed.
Will commit tomorrow (damn, I hate to work at night... will be really tired
tomorrow :( )
Ciao,
--
Michael Brade; KDE Developer, Student of Computer Science
|-mail: echo brade !#|tr -d "c oh"|s\e\d 's/e/\@/2;s/$/.org/;s/bra/k/2'
°--web: http://www.kde.org/people/michaelb.html
KDE 3: The Next Generation in Desktop Experience
-------------- next part --------------
A non-text attachment was scrubbed...
Name: kdirlister.patch
Type: text/x-diff
Size: 5439 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20021107/b0d62507/attachment.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: signature
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20021107/b0d62507/attachment.sig>
More information about the kde-core-devel
mailing list