mirror of
https://github.com/servo/servo.git
synced 2025-06-06 16:45:39 +00: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
|
@ -1750,7 +1750,7 @@ impl Flow for InlineFlow {
|
|||
|
||||
fn collect_stacking_contexts(&mut self,
|
||||
parent_id: StackingContextId,
|
||||
contexts: &mut Vec<StackingContext>)
|
||||
contexts: &mut Vec<Box<StackingContext>>)
|
||||
-> StackingContextId {
|
||||
self.collect_stacking_contexts_for_inline(parent_id, contexts)
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue