From 2d794703fdd58db576ae43a25cc2660494eacaf2 Mon Sep 17 00:00:00 2001 From: Yury Melnichek Date: Tue, 8 Feb 2011 00:29:02 +0100 Subject: [PATCH] Better log output on indexing. --- indexer/scale_index_builder.hpp | 9 +++++---- 1 file 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(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 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 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."));