| FazBrowse GitHub Viewer | Trending | | Home |
| Tools: [Download Repo ZIP] [Original HTTPS Page] |
1 parent 04eb0ad commit 03d090e
1 file changed
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
@@ -48,7 +48,7 @@ pub(crate) mod ordered_dict { | |||
| 48 | 48 | last: Option<usize>, | |
| 49 | 49 | nodes: Vec<Option<ODictNode>>, | |
| 50 | 50 | free: Vec<usize>, | |
| 51 | - by_hash: HashMap<PyHash, Vec<usize>>, | ||
| 51 | + by_hash: Box<HashMap<PyHash, Vec<usize>>>, | ||
| 52 | 52 | state: usize, | |
| 53 | 53 | } | |
| 54 | 54 | ||
@@ -573,6 +573,7 @@ pub(crate) mod ordered_dict { | |||
| 573 | 573 | fn __sizeof__(&self) -> usize { | |
| 574 | 574 | self.dict.__sizeof__() | |
| 575 | 575 | + core::mem::size_of::<ODictLinks>() | |
| 576 | + + core::mem::size_of::<HashMap<PyHash, Vec<usize>>>() | ||
| 576 | 577 | + self.links.lock().nodes.capacity() * core::mem::size_of::<Option<ODictNode>>() | |
| 577 | 578 | } | |
| 578 | 579 | ||
| Back | FazBrowse Home | New Git URL |
0 commit comments