mirror of
https://github.com/servo/servo.git
synced 2025-10-04 02:29:12 +01:00
Auto merge of #22487 - emilio:single-layout-thread-pool, r=jdm
style: Make Servo use a single thread-pool for layout-related tasks per process. Instead of per-document. This also allows to reuse this thread-pool if needed for other stuff, like parallel CSS parsing (#22478), and to share more code with Gecko, which is always nice. <!-- Reviewable:start --> --- This change is [<img src="https://reviewable.io/review_button.svg" height="34" align="absmiddle" alt="Reviewable"/>](https://reviewable.io/reviews/servo/servo/22487) <!-- Reviewable:end -->
This commit is contained in:
commit
b5a10e9c96
12 changed files with 56 additions and 77 deletions
|
@ -16,8 +16,7 @@ path = "lib.rs"
|
|||
doctest = false
|
||||
|
||||
[features]
|
||||
gecko = ["num_cpus",
|
||||
"style_traits/gecko", "fallible/known_system_malloc"]
|
||||
gecko = ["style_traits/gecko", "fallible/known_system_malloc"]
|
||||
use_bindgen = ["bindgen", "regex", "toml"]
|
||||
servo = ["serde", "style_traits/servo", "servo_atoms", "servo_config", "html5ever",
|
||||
"cssparser/serde", "encoding_rs", "malloc_size_of/servo", "arrayvec/use_union",
|
||||
|
@ -47,7 +46,7 @@ log = "0.4"
|
|||
malloc_size_of = { path = "../malloc_size_of" }
|
||||
malloc_size_of_derive = { path = "../malloc_size_of_derive" }
|
||||
matches = "0.1"
|
||||
num_cpus = {version = "1.1.0", optional = true}
|
||||
num_cpus = {version = "1.1.0"}
|
||||
num-integer = "0.1"
|
||||
num-traits = "0.2"
|
||||
num-derive = "0.2"
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue