Cache the result of the KDE::stat calls in KDirListerCache::slotFileDirty

Review Request #110834 - Created June 5, 2013 and submitted

Information
Dawit Alemayehu
kdelibs
origin/master
317676
Reviewers
kdelibs
dfaure
This patch, inspired by the issue reported in bug# 317676, attempts to cache and reuse the original result from the stat call in KDirListerCache::slotFileDirty. Since that stat call is only needed to determine whether the "dirty" resource is a file or directory, caching the result helps us avoid the potential for tons of KDE::stat calls. The stat will happen if you for example copy or download a large file into a local folder while that folder is being viewed in a file browsing app such as dolphin or konqueror. The cached information is removed if the resource being monitored is deleted or renamed.
The patch was tested by the bug reporter and it fixed the issue for him.

Issues

  • 0
  • 5
  • 0
  • 5
Description From Last Updated
Dawit Alemayehu
David Faure
Dawit Alemayehu
David Faure
Dawit Alemayehu
David Faure
Dawit Alemayehu
David Faure
Commit Hook
Dawit Alemayehu
Review request changed

Status: Closed (submitted)

Loading...