Summary:
Currently after loadding all shards, we use MemIndex which has poor query
performance, we should use Dex.
Reviewers: kadircet
Subscribers: ilya-biryukov, ioeric, MaskRay, jkorous, arphaman, cfe-commits
Tags: #clang
Differential Revision: https://reviews.llvm.org/D59350
llvm-svn: 356126
// extra index build.
reset(
IndexedSymbols.buildIndex(IndexType::Heavy, DuplicateHandling::Merge));
- log("BackgroundIndex: rebuilt symbol index.");
+ log("BackgroundIndex: rebuilt symbol index with estimated memory {0} "
+ "bytes.",
+ estimateMemoryUsage());
}
}
}
}
vlog("Loaded all shards");
- reset(IndexedSymbols.buildIndex(IndexType::Light, DuplicateHandling::Merge));
-
+ reset(IndexedSymbols.buildIndex(IndexType::Heavy, DuplicateHandling::Merge));
+ vlog("BackgroundIndex: built symbol index with estimated memory {0} "
+ "bytes.",
+ estimateMemoryUsage());
return NeedsReIndexing;
}