mirror of
https://github.com/rust-lang/rust.git
synced 2026-06-02 15:56:09 +03: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:
@@ -138,7 +138,7 @@ pub(crate) fn len(&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(
|
||||
|
||||
Reference in New Issue
Block a user