faster shapevl

This commit is contained in:
Patrick Brosi 2022-01-12 17:20:10 +01:00
parent 1febc192ce
commit 1e516f4d2b
3 changed files with 61 additions and 54 deletions

View file

@ -56,7 +56,9 @@ void eval(const std::vector<std::string>* paths,
}
LOG(DEBUG) << "Evaluating " << path << "...";
size_t i = 0;
for (const auto& oldTrip : evalFeed->getTrips()) {
LOG(DEBUG) << "@ " << ++i << "/" << evalFeed->getTrips().size();
if (!mots->count(oldTrip.second->getRoute()->getType())) continue;
auto newTrip = feed.getTrips().get(oldTrip.first);
if (!newTrip) {