logic: improved performance of initializing the fulltext search index

* implemented using multithreaing for building the fulltext search index
* also: decreased ideal thread count by 1 to keep the machine responsive while indexing and building the index
This commit is contained in:
mlangkabel
2018-04-10 12:40:51 +02:00
parent 7dde56ea6a
commit 835aedd669
6 changed files with 74 additions and 45 deletions
+1 -1
View File
@@ -156,7 +156,7 @@ OsType utility::getOsType()
int utility::getIdealThreadCount()
{
return QThread::idealThreadCount();
return std::max(1, QThread::idealThreadCount() - 1);
}
bool utility::saveLicense(const License* license)