mirror of
https://github.com/servo/servo.git
synced 2025-08-10 16:05:43 +01:00
Upgrade to rustc 1.36.0-nightly (e305df184 2019-04-24)
This includes a `size_of` regression for a few DOM types, due to https://github.com/rust-lang/rust/pull/58623 which replaces the implementation of `HashMap` in the standard library to Hashbrown. Although `size_of<HashMap>` grows, it’s not obvious how total memory usage is going to be impacted: Hashbrown only has one `u8` instead of one `usize` of overhead per hash table bucket for storing (part of) a hash, and so might allocate less memory itself. Hashbrown also typically has better run time performance: https://github.com/rust-lang/hashbrown#performance Still, I’ve filed https://github.com/rust-lang/hashbrown/issues/69 about potentially reducing the `size_of<HashMap>` regression.
This commit is contained in:
parent
07d1559141
commit
51d6b6350e
4 changed files with 22 additions and 22 deletions
|
@ -29,11 +29,11 @@ macro_rules! sizeof_checker (
|
|||
);
|
||||
|
||||
// Update the sizes here
|
||||
sizeof_checker!(size_event_target, EventTarget, 40);
|
||||
sizeof_checker!(size_node, Node, 184);
|
||||
sizeof_checker!(size_element, Element, 432);
|
||||
sizeof_checker!(size_htmlelement, HTMLElement, 448);
|
||||
sizeof_checker!(size_div, HTMLDivElement, 448);
|
||||
sizeof_checker!(size_span, HTMLSpanElement, 448);
|
||||
sizeof_checker!(size_text, Text, 216);
|
||||
sizeof_checker!(size_characterdata, CharacterData, 216);
|
||||
sizeof_checker!(size_event_target, EventTarget, 56);
|
||||
sizeof_checker!(size_node, Node, 200);
|
||||
sizeof_checker!(size_element, Element, 448);
|
||||
sizeof_checker!(size_htmlelement, HTMLElement, 464);
|
||||
sizeof_checker!(size_div, HTMLDivElement, 464);
|
||||
sizeof_checker!(size_span, HTMLSpanElement, 464);
|
||||
sizeof_checker!(size_text, Text, 232);
|
||||
sizeof_checker!(size_characterdata, CharacterData, 232);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue