mirror of
https://github.com/swift-project/pilotclient.git
synced 2026-04-02 06:35:52 +08:00
Ref T308, loading JSON from DB optimizations
- info about time consumed for parsing (so we can benchmark) - using the "optimized" YYYYmmdd parsing
This commit is contained in:
@@ -299,7 +299,10 @@ namespace BlackCore
|
||||
}
|
||||
else
|
||||
{
|
||||
QTime time;
|
||||
time.start();
|
||||
liveries = CLiveryList::fromDatabaseJson(res);
|
||||
this->logParseMessage("liveries", liveries.size(), time.elapsed(), res);
|
||||
}
|
||||
|
||||
if (!this->doWorkCheck()) { return; }
|
||||
@@ -343,7 +346,10 @@ namespace BlackCore
|
||||
}
|
||||
else
|
||||
{
|
||||
QTime time;
|
||||
time.start();
|
||||
distributors = CDistributorList::fromDatabaseJson(res);
|
||||
this->logParseMessage("distributors", distributors.size(), time.elapsed(), res);
|
||||
}
|
||||
|
||||
if (!this->doWorkCheck()) { return; }
|
||||
@@ -391,8 +397,7 @@ namespace BlackCore
|
||||
QTime time;
|
||||
time.start();
|
||||
models = CAircraftModelList::fromDatabaseJson(res);
|
||||
const int elapsed = time.elapsed();
|
||||
CLogMessage(this).info("Parsed %1 models in %2 ms") << models.size() << elapsed;
|
||||
this->logParseMessage("models", models.size(), time.elapsed(), res);
|
||||
}
|
||||
|
||||
// synchronized update
|
||||
|
||||
Reference in New Issue
Block a user