logic: reduce access to filesystem while indexing

* use canonical filepath cache in cxx indexer
* made constructors of FilePath explicit
* use FilePath at more places instead of string
* forward declares FilePath wherever possible
This commit is contained in:
malte_langkabel
2017-05-04 10:55:16 +02:00
parent 55d3f9c189
commit 054b8fab17
156 changed files with 656 additions and 444 deletions
+3 -3
View File
@@ -48,15 +48,15 @@ void IntermediateStorage::setAllFilesIncomplete()
void IntermediateStorage::setFilesWithErrorsIncomplete()
{
std::set<FilePath> errorFiles;
std::set<std::string> errorFileNames;
for (StorageError& error : m_errors)
{
errorFiles.insert(error.filePath);
errorFileNames.insert(error.filePath.str());
}
for (StorageFile& file : m_files)
{
if (errorFiles.find(file.filePath) != errorFiles.end())
if (errorFileNames.find(file.filePath) != errorFileNames.end())
{
file.complete = false;
}