aboutsummaryrefslogtreecommitdiffstats
path: root/tests/unit
diff options
context:
space:
mode:
authorSimon Sapin <simon.sapin@exyr.org>2019-04-25 13:52:04 +0200
committerSimon Sapin <simon.sapin@exyr.org>2019-04-25 13:52:09 +0200
commit51d6b6350efd518fea1cf6f100e91fc9486ca30b (patch)
treeef6371d274e4b0538a6bf807e0ba72fc0b1c6f7c /tests/unit
parent07d1559141959cb0c49df33f1eb7dbc58c3e71da (diff)
downloadservo-51d6b6350efd518fea1cf6f100e91fc9486ca30b.tar.gz
servo-51d6b6350efd518fea1cf6f100e91fc9486ca30b.zip
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.
Diffstat (limited to 'tests/unit')
-rw-r--r--tests/unit/script/size_of.rs16
1 files changed, 8 insertions, 8 deletions
diff --git a/tests/unit/script/size_of.rs b/tests/unit/script/size_of.rs
index 75db04bf647..4d56b2ab10b 100644
--- a/tests/unit/script/size_of.rs
+++ b/tests/unit/script/size_of.rs
@@ -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);