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:
authorYury Melnichek <melnichek@gmail.com>2011-02-08 02:29:02 +0300
committerAlex Zolotarev <alex@maps.me>2015-09-23 01:12:14 +0300
commit2d794703fdd58db576ae43a25cc2660494eacaf2 (patch)
tree464ca0f1a4301036fa015d26b9ea0fce5d8e7020 /indexer/scale_index_builder.hpp
parent8c8bd4b1f531b65b3e8dff96b92fce2d85b9d2d2 (diff)
Better log output on indexing.
Diffstat (limited to 'indexer/scale_index_builder.hpp')
-rw-r--r--indexer/scale_index_builder.hpp9
1 files changed, 5 insertions, 4 deletions
diff --git a/indexer/scale_index_builder.hpp b/indexer/scale_index_builder.hpp
index 08a8adcd23..21ca14e7d4 100644
--- a/indexer/scale_index_builder.hpp
+++ b/indexer/scale_index_builder.hpp
@@ -165,20 +165,21 @@ inline void IndexScales(FeaturesVectorT const & featuresVector,
SorterType sorter(1024*1024, tmpFilePrefix + ".c2f.tmp", out);
*/
featuresVector.ForEachOffset(FeatureCoverer<SorterType>(bucket, sorter, numFeatures));
- LOG(LINFO, ("Sorting..."));
+ // LOG(LINFO, ("Sorting..."));
sorter.SortAndFinish();
}
- LOG(LINFO, ("Indexing..."));
+ // LOG(LINFO, ("Indexing..."));
{
FileReader reader(tmpFilePrefix + ".c2f.sorted");
uint64_t const numCells = reader.Size() / sizeof(CellFeaturePair);
DDVector<CellFeaturePair, FileReader, uint64_t> cellsToFeatures(reader, numCells);
- LOG(LINFO, ("Being indexed", "features:", numFeatures, "cells:", numCells));
+ LOG(LINFO, ("Being indexed", "features:", numFeatures, "cells:", numCells,
+ "cells per feature:", (numCells + 1.0) / (numFeatures + 1.0)));
SubWriter<WriterT> subWriter(writer);
BuildIntervalIndex<5>(cellsToFeatures.begin(), cellsToFeatures.end(), subWriter);
}
FileWriter::DeleteFile(tmpFilePrefix + ".c2f.sorted");
- LOG(LINFO, ("Indexing done."));
+ // LOG(LINFO, ("Indexing done."));
recordWriter.FinishRecord();
}
LOG(LINFO, ("All scale indexes done."));