geckolib: use a global thread pool for styling

By having a single thread pool, rather than one per document, we use
less memory.  This addresses
https://bugzilla.mozilla.org/show_bug.cgi?id=1324250.
This commit is contained in:
Nathan Froyd 2017-02-13 12:57:08 -05:00
parent 469ed934e7
commit 3e81f8431e
5 changed files with 22 additions and 25 deletions

1
Cargo.lock generated
View file

@ -906,6 +906,7 @@ dependencies = [
"log 0.3.6 (registry+https://github.com/rust-lang/crates.io-index)",
"num_cpus 1.2.1 (registry+https://github.com/rust-lang/crates.io-index)",
"parking_lot 0.3.8 (registry+https://github.com/rust-lang/crates.io-index)",
"rayon 0.6.0 (registry+https://github.com/rust-lang/crates.io-index)",
"selectors 0.18.0",
"servo_url 0.0.1",
"style 0.0.1",