[PATCH] New KFileItem::assign() for Optimizing KDirListerCache

Michael Brade brade at kde.org
Fri Mar 25 13:51:56 GMT 2005


Hi,

attached is a patch with some KFileItem improvements. It makes it possible to 
assign a new UDSEntry, which is needed in KDirListerCache::slotUpdateResult() 
to save all those superfluous new/delete calls.

The patch also reduces the new/delete operations in the already existing 
assign() method. The comment in the new assign() about the extra data that I 
copied from the old assign() is wrong, I'll remove it in the final patch.

Please check that I didn't miss anything.

Cheers,
-- 
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: kfileitem.patch
Type: text/x-diff
Size: 8295 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20050325/b6d40188/attachment.patch>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
URL: <http://mail.kde.org/pipermail/kde-core-devel/attachments/20050325/b6d40188/attachment.sig>


More information about the kde-core-devel mailing list