mirror of
https://github.com/servo/servo.git
synced 2025-08-16 19:05:33 +01:00
gfx: Box stacking contexts to minimize memmove
traffic.
`memmove` was showing up high in the profile when concatenating and shorting display lists. This change drastically reduces the `memmove` cost in exchange for some minor additional allocation cost.
This commit is contained in:
parent
3ff5082798
commit
4233e0f163
15 changed files with 35 additions and 36 deletions
|
@ -508,7 +508,7 @@ pub struct StackingContext {
|
|||
pub layer_info: Option<LayerInfo>,
|
||||
|
||||
/// Children of this StackingContext.
|
||||
pub children: Vec<StackingContext>,
|
||||
pub children: Vec<Box<StackingContext>>,
|
||||
}
|
||||
|
||||
impl StackingContext {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue