mirror of
https://github.com/rust-lang/rust-analyzer.git
synced 2025-10-01 11:31:15 +00:00
Merge #648
648: print one size for symbols r=matklad a=matklad Co-authored-by: Aleksey Kladov <aleksey.kladov@gmail.com>
This commit is contained in:
commit
d65dca6bb3
@ -138,7 +138,7 @@ impl SymbolIndex {
|
|||||||
}
|
}
|
||||||
|
|
||||||
pub(crate) fn memory_size(&self) -> usize {
|
pub(crate) fn memory_size(&self) -> usize {
|
||||||
self.map.as_fst().size() * self.symbols.len() * mem::size_of::<FileSymbol>()
|
self.map.as_fst().size() + self.symbols.len() * mem::size_of::<FileSymbol>()
|
||||||
}
|
}
|
||||||
|
|
||||||
pub(crate) fn for_files(
|
pub(crate) fn for_files(
|
||||||
|
Loading…
x
Reference in New Issue
Block a user