Welcome to mirror list, hosted at ThFree Co, Russian Federation.

github.com/mapsme/omim.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorYuri Gorshenin <y@maps.me>2016-07-14 22:42:07 +0300
committerYuri Gorshenin <y@maps.me>2016-07-14 22:51:15 +0300
commit1bf1c797728f7ef2c964b454b1c619117528ac2f (patch)
treeca18e9b6921f89c2db6db318810b3a08831a0b03 /search/processor.cpp
parent775690d1dd83fd089992f557c822148623f7e6b0 (diff)
[search] Fixed slooow locality matching.
Locality matching code haven't supported a lot of mwms, and iterated over the whole mwms set on each search result (sic!). Moreover, for locality selection it directly read all features in the rect instead of RankTable usage. This CL significantly speeds up search results generation stage, when there're a lot of maps and a lot of search results.
Diffstat (limited to 'search/processor.cpp')
-rw-r--r--search/processor.cpp2
1 files changed, 0 insertions, 2 deletions
diff --git a/search/processor.cpp b/search/processor.cpp
index 930cfbe1a0..b3cc1e97f0 100644
--- a/search/processor.cpp
+++ b/search/processor.cpp
@@ -188,9 +188,7 @@ void Processor::SetPreferredLocale(string const & locale)
// Default initialization.
// If you want to reset input language, call SetInputLocale before search.
SetInputLocale(locale);
-#ifdef FIND_LOCALITY_TEST
m_ranker.SetLocalityFinderLanguage(code);
-#endif // FIND_LOCALITY_TEST
}
void Processor::SetInputLocale(string const & locale)