mirror of
https://github.com/servo/servo.git
synced 2025-07-24 07:40:27 +01:00
Rewrite parallel.rs to be not slow.
This commit is contained in:
parent
03fbea4ec8
commit
a182ae46f6
2 changed files with 155 additions and 36 deletions
|
@ -17,12 +17,17 @@ use servo_config::opts;
|
|||
use std::mem;
|
||||
use std::sync::atomic::{AtomicIsize, Ordering};
|
||||
use style::dom::UnsafeNode;
|
||||
use style::parallel::CHUNK_SIZE;
|
||||
use traversal::{AssignISizes, BubbleISizes};
|
||||
use traversal::AssignBSizes;
|
||||
|
||||
pub use style::parallel::traverse_dom;
|
||||
|
||||
/// Traversal chunk size.
|
||||
///
|
||||
/// FIXME(bholley): This is all likely very inefficient and should probably be
|
||||
/// reworked to mirror the style system's parallel.rs.
|
||||
pub const CHUNK_SIZE: usize = 64;
|
||||
|
||||
#[allow(dead_code)]
|
||||
fn static_assertion(node: UnsafeNode) {
|
||||
unsafe {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue