mirror of
https://github.com/servo/servo.git
synced 2025-08-03 04:30:10 +01:00
layout: Disable parallel display list building by default.
I've never see it result in a speedup. Actually, I don't think I've seen it result in anything better than a 50% slowdown. The arithmetic intensity is just too low, at least with the current algorithm. Parallel DL building can still be enabled with a debug flag if the algorithm is improved.
This commit is contained in:
parent
836ac8a0b6
commit
eef9c5d9bf
2 changed files with 12 additions and 6 deletions
|
@ -821,18 +821,18 @@ impl LayoutTask {
|
|||
flow::mut_base(&mut **layout_root).clip =
|
||||
ClippingRegion::from_rect(&data.page_clip_rect);
|
||||
|
||||
match rw_data.parallel_traversal {
|
||||
None => {
|
||||
sequential::build_display_list_for_subtree(layout_root,
|
||||
shared_layout_context);
|
||||
}
|
||||
Some(ref mut traversal) => {
|
||||
match (&mut rw_data.parallel_traversal, opts::get().parallel_display_list_building) {
|
||||
(&mut Some(ref mut traversal), true) => {
|
||||
parallel::build_display_list_for_subtree(layout_root,
|
||||
self.profiler_metadata(),
|
||||
self.time_profiler_chan.clone(),
|
||||
shared_layout_context,
|
||||
traversal);
|
||||
}
|
||||
_ => {
|
||||
sequential::build_display_list_for_subtree(layout_root,
|
||||
shared_layout_context);
|
||||
}
|
||||
}
|
||||
|
||||
if data.goal == ReflowGoal::ForDisplay {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue