diff options
author | Yuri Gorshenin <y@maps.me> | 2016-07-14 22:42:07 +0300 |
---|---|---|
committer | Yuri Gorshenin <y@maps.me> | 2016-07-14 22:51:15 +0300 |
commit | 1bf1c797728f7ef2c964b454b1c619117528ac2f (patch) | |
tree | ca18e9b6921f89c2db6db318810b3a08831a0b03 /std | |
parent | 775690d1dd83fd089992f557c822148623f7e6b0 (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 'std')
-rw-r--r-- | std/algorithm.hpp | 1 |
1 files changed, 1 insertions, 0 deletions
diff --git a/std/algorithm.hpp b/std/algorithm.hpp index d70be39125..f35518bd61 100644 --- a/std/algorithm.hpp +++ b/std/algorithm.hpp @@ -24,6 +24,7 @@ using std::lower_bound; using std::max; using std::max_element; using std::min; +using std::min_element; using std::next_permutation; using std::nth_element; using std::partial_sort; |