print one size for symbols

This commit is contained in:
Aleksey Kladov 2019-01-25 21:10:28 +03:00
parent aae69bc897
commit 50a7598773
2 changed files with 5 additions and 15 deletions

View file

@ -137,12 +137,8 @@ impl SymbolIndex {
self.symbols.len()
}
pub(crate) fn fst_size(&self) -> usize {
self.map.as_fst().size()
}
pub(crate) fn symbols_size(&self) -> usize {
self.symbols.len() * mem::size_of::<FileSymbol>()
pub(crate) fn memory_size(&self) -> usize {
self.map.as_fst().size() * self.symbols.len() * mem::size_of::<FileSymbol>()
}
pub(crate) fn for_files(