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:
authorLev Dragunov <l.dragunov@corp.mail.ru>2015-12-11 23:49:52 +0300
committerSergey Yershov <yershov@corp.mail.ru>2016-03-23 16:14:53 +0300
commit3a316e1cb47a68eb61c9c14d4c353964fcfea257 (patch)
treecb171b8238de6e561518c4361048f4f6ea0b1a43 /indexer/scale_index_builder.hpp
parentec36d57ae91632cd5e6a1922f17e03bb59676346 (diff)
Review fixes.
Diffstat (limited to 'indexer/scale_index_builder.hpp')
-rw-r--r--indexer/scale_index_builder.hpp3
1 files changed, 3 insertions, 0 deletions
diff --git a/indexer/scale_index_builder.hpp b/indexer/scale_index_builder.hpp
index d85df1e168..08da6a17ab 100644
--- a/indexer/scale_index_builder.hpp
+++ b/indexer/scale_index_builder.hpp
@@ -155,6 +155,9 @@ void IndexScales(feature::DataHeader const & header, TFeaturesVector const & fea
using TDisplacementManager = DisplacementManager<TSorter>;
WriterFunctor<FileWriter> out(cellsToFeaturesAllBucketsWriter);
TSorter sorter(1024 * 1024 /* bufferBytes */, tmpFilePrefix + CELL2FEATURE_TMP_EXT, out);
+ // Heuristically rearrange and filter single-point features to simplify
+ // the runtime decision of whether we should draw a feature
+ // or sacrifice it for the sake of more important ones.
TDisplacementManager manager(sorter);
vector<uint32_t> featuresInBucket(bucketsCount);
vector<uint32_t> cellsInBucket(bucketsCount);