From 09bbfbe2e96ca3167776f64448a78c5ddae1b0fa Mon Sep 17 00:00:00 2001 From: Vladimir Byko-Ianko Date: Wed, 7 Oct 2020 16:51:11 +0300 Subject: [PATCH 1/2] Adding log --- routing/index_router.hpp | 1 + 1 file changed, 1 insertion(+) diff --git a/routing/index_router.hpp b/routing/index_router.hpp index 84439914519..84a77c4db7d 100644 --- a/routing/index_router.hpp +++ b/routing/index_router.hpp @@ -211,6 +211,7 @@ class IndexRouter : public IRouter AStarParams & params, std::set const & mwmIds, RoutingResult & routingResult, WorldGraphMode mode) const { + base::ScopedTimerWithLog timerWithLog("***FindPath***", base::ScopedTimerWithLog::Measure::Seconds); AStarAlgorithm algorithm; return ConvertTransitResult( mwmIds, ConvertResult(algorithm.FindPathBidirectional(params, routingResult))); From 38e0c6816870399537f7809ffd78c4660259097b Mon Sep 17 00:00:00 2001 From: Vladimir Byko-Ianko Date: Mon, 12 Oct 2020 11:07:55 +0300 Subject: [PATCH 2/2] Switching off getting altitude. --- routing/geometry.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/routing/geometry.cpp b/routing/geometry.cpp index 98aa30e2ff0..9ccee20fda9 100644 --- a/routing/geometry.cpp +++ b/routing/geometry.cpp @@ -101,12 +101,12 @@ void GeometryLoaderImpl::Load(uint32_t featureId, RoadGeometry & road) feature->ParseGeometry(FeatureType::BEST_GEOMETRY); geometry::Altitudes const * altitudes = nullptr; - if (m_loadAltitudes) - altitudes = &(m_altitudeLoader.GetAltitudes(featureId, feature->GetPointsCount())); +// if (m_loadAltitudes) +// altitudes = &(m_altitudeLoader.GetAltitudes(featureId, feature->GetPointsCount())); road.Load(*m_vehicleModel, *feature, altitudes, m_attrLoader.m_cityRoads->IsCityRoad(featureId), m_attrLoader.m_maxspeeds->GetMaxspeed(featureId)); - m_altitudeLoader.ClearCache(); +// m_altitudeLoader.ClearCache(); } // FileGeometryLoader ------------------------------------------------------------------------------