[Bug 163050] Strigi indexing of large/unbounded files causes KFileMetaInfo to freeze.

Jos van den Oever jos at vandenoever.info
Fri Jun 6 21:27:10 CEST 2008


------- You are receiving this mail because: -------
You are the assignee for the bug, or are watching the assignee.
         
http://bugs.kde.org/show_bug.cgi?id=163050         




------- Additional Comments From jos vandenoever info  2008-06-06 21:27 -------
It would be helpful to see how 'xmlindexer' performs on the same file.
There certainly is no need for dolphin to do a very thorough analysis of big files, so we need to adapt the analyzer configuration to limit the analysis and make sure the analyzers involved respect the setting.

Currently the default configuration is used in predicateproperties.cpp:117.
For performance one could do:
class ShallowAnalysisConfiguration : public Strigi::AnalyzerConfiguration {
    /** Limit the amount of data we will read from a stream.
        This is a suggestion to analyzers which they should follow.
        Only index real files. We do not look at subfiles.
        This setting is needed because by default all subfiles are examined.
    **/
    int64_t maximalStreamReadLength(const Strigi::AnalysisResult& ar) {
        // 64k should be enough
        return (ar.depth() == 0) ?65536 :0;
    }
};


More information about the Kdelibs-bugs mailing list