Revision 596910

Go back to digest for 22nd October 2006

Features in KDE Base

Jos van den Oever committed changes in /trunk/playground/base/strigi/src/streamindexer:

Only read a stream as far as required by the analyzers. An EndStreamAnalyzer is assumed to do so already. ThroughStreamAnalyzers now have a function bool isReadyWithStream() that can be called to check if the stream has to be read any further. StreamIndexer takes advantage of this new function to reduce the reading it does.

This optimisation has no real effect unless streams that are required to read the entire stream (e.g. DigestStreamAnalyzer) can be turned off.
This possibility will be added later.

File Changes

Modified 10 files
  • /trunk/playground/base/strigi/src/streamindexer
  •   /digestthroughanalyzer.h
  •   /id3v2throughanalyzer.cpp
  •   /id3v2throughanalyzer.h
  •   /pluginthroughanalyzer.cpp
  •   /pluginthroughanalyzer.h
  •   /streamindexer.cpp
  •   /streamthroughanalyzer.h
  •   /throughplugins/mimetypethroughanalyzer.cpp
  •   /throughplugins/mimetypethroughanalyzer.h
  •   /throughplugins/xattrthroughanalyzer.cpp
10 files changed in total