Summary: | Filelight should cache data to prevent unnecessary disk activity | ||
---|---|---|---|
Product: | [Applications] filelight | Reporter: | Amichai Rothman <amichai2> |
Component: | general | Assignee: | Martin Sandsmark <martin.sandsmark> |
Status: | RESOLVED FIXED | ||
Severity: | normal | CC: | dave |
Priority: | NOR | ||
Version: | 1.0 | ||
Target Milestone: | --- | ||
Platform: | Ubuntu | ||
OS: | Linux | ||
Latest Commit: | http://commits.kde.org/filelight/615ea422042322da6f579678edf376f3ba7cfe16 | Version Fixed In: | |
Attachments: |
Actually use Filelight's cache
Actually use the cache, updated for kdeutils 4.7.0 |
Description
Amichai Rothman
2010-08-21 20:43:56 UTC
Created attachment 52094 [details]
Actually use Filelight's cache
Filelight does actually cache the results, but I can confirm that it's not in fact using this cache. The attached patch should fix this. It looks like the part of ScanManager::start() that looks for a relative path within a cached directory is the problem. It is splitting the relative path "foo/bar/" into ["foo", "bar", ""], which then breaks when looking for a file with an empty name. Just declaring success on encountering an empty string should work fine. There's a subsequent problem, that when Filelight finds a cached directory, it adds it to the cache all over again, and the resulting duplicates can eventually cause crashes. So I've added a new signal/slot specifically for cache hits, to work around this. Created attachment 63296 [details]
Actually use the cache, updated for kdeutils 4.7.0
Any update on actually getting this patch into Filelight?
Git commit a6c112e3782378e0976992574611bd1548c77fc4 by Martin T. H. Sandsmark. Committed on 04/01/2013 at 21:49. Pushed by sandsmark into branch 'master'. Fix usage of cache. Patch by Dave Vasilevsky. M +13 -1 src/part/scan.cpp M +2 -0 src/part/scan.h http://commits.kde.org/filelight/a6c112e3782378e0976992574611bd1548c77fc4 Git commit 615ea422042322da6f579678edf376f3ba7cfe16 by Martin T. H. Sandsmark. Committed on 04/01/2013 at 21:49. Pushed by sandsmark into branch 'KDE/4.10'. Fix usage of cache. Patch by Dave Vasilevsky. M +13 -1 src/part/scan.cpp M +2 -0 src/part/scan.h http://commits.kde.org/filelight/615ea422042322da6f579678edf376f3ba7cfe16 Thanks, Martin :) Thanks to you, and sorry it took so long to get around to :D |