Repository navigation
Reduce size of layout::fragment::Fragment struct - #10255
Conversation
|
Maybe we could also switch from |
|
Should we add a unit test for the size of those types? |
|
@mbrubeck I'm not sure there is any point in doing this, we never change the length of the string right? |
|
|
Done.
Done. |
|
The long poles are now InlineBlockFragmentInfo and InlineAbsoluteHypotheticalFragmentInfo. They each contain a FlowRef, which is a fat pointer. |
This reduces the size of the SpecificFragmentInfo enum from 48 to 24.
|
@bors-servo: r+ Nice! |
|
📌 Commit 33b9aa4 has been approved by |
Reduce size of layout::fragment::Fragment struct This reduces the size of the SpecificFragmentInfo enum from 48 to 24. r? @pcwalton <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="35" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/10255) <!-- Reviewable:end -->
|
☀️ Test successful - android, arm32, gonk, linux-dev, linux-rel, mac-dev-unit, mac-rel-css, mac-rel-wpt, status-appveyor |
This reduces the size of the SpecificFragmentInfo enum from 48 to 24.
r? @pcwalton
This change is