[baloo_file_extractor] Limit CPU usage
Review Request #129703 - Created Dec. 25, 2016 and updated
|aacid, bgupta, dfaure, pinakahuja, vhanda|
Processing large directories, +5000 files, can be CPU eater. Large file, itself, can be another issue.
This may be a dumb comment, but if there are multiple extractors, each potentially pulling metadata in a different way (say, one pulls demographics of the file, its type, its size, etc) and the other pulls metadata from the file itself, wouldn't we want that to be supported?
This loop only appears to be running multiple extractions in the event that there are multiple extractors for the mime-type, each potentially sticking information into different parts of the
Does that make sense? It may be a dumb point, but I'm curious to see where I'm wrong.
Without knowing anything about baloo this looks totally wrong
QList<KFileMetaData::Extractor*> exList = m_extractorCollection.fetchExtractors(mimetype);
why would not you want to iterate over all the iterators that support a given mimetype?