mirror of
https://github.com/servo/servo.git
synced 2025-08-06 22:15:33 +01:00
Update rayon to dedupe crossbeam-epoch
As a bonus this also removes one version of crossbeam-utils
This commit is contained in:
parent
df73c71fb1
commit
28fa0f8009
7 changed files with 39 additions and 63 deletions
|
@ -133,7 +133,12 @@ pub fn traverse_dom<E, D>(
|
|||
let root_opaque = root.as_node().opaque();
|
||||
let drain = discovered.drain(..);
|
||||
pool.install(|| {
|
||||
rayon::scope(|scope| {
|
||||
// Enable a breadth-first rayon traversal. This causes the work
|
||||
// queue to be always FIFO, rather than FIFO for stealers and
|
||||
// FILO for the owner (which is what rayon does by default). This
|
||||
// ensures that we process all the elements at a given depth before
|
||||
// proceeding to the next depth, which is important for style sharing.
|
||||
rayon::scope_fifo(|scope| {
|
||||
profiler_label!(Style);
|
||||
parallel::traverse_nodes(
|
||||
drain,
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue