diff options
author | Nicholas Nethercote <nnethercote@mozilla.com> | 2015-04-29 21:36:03 -0700 |
---|---|---|
committer | Nicholas Nethercote <nnethercote@mozilla.com> | 2015-04-30 17:58:47 -0700 |
commit | 092507d23cfae6e249a7630190fa7e64b92603e4 (patch) | |
tree | bfffeb1028e49de5059383a3e9d04980b79b6c21 /components/script/layout_interface.rs | |
parent | 826b7222027b7b8b5df417998a1e4826aecb019a (diff) | |
download | servo-092507d23cfae6e249a7630190fa7e64b92603e4.tar.gz servo-092507d23cfae6e249a7630190fa7e64b92603e4.zip |
Add a `profile_traits` crate to reduce compile times.
A rebuild after touching components/profile/mem.rs now takes 48 seconds (and
only rebuilds `profile` and `servo`) which is much lower than it used to be.
In comparison, a rebuild after touching components/profile_traits/mem.rs takes
294 seconds and rebuilds many more crates.
This change also removes some unnecessary crate dependencies in `net` and
`net_traits`.
Diffstat (limited to 'components/script/layout_interface.rs')
-rw-r--r-- | components/script/layout_interface.rs | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/components/script/layout_interface.rs b/components/script/layout_interface.rs index 4859c075058..05046c3e564 100644 --- a/components/script/layout_interface.rs +++ b/components/script/layout_interface.rs @@ -12,7 +12,7 @@ use geom::point::Point2D; use geom::rect::Rect; use libc::uintptr_t; use msg::constellation_msg::{PipelineExitType, WindowSizeData}; -use profile::mem::{Reporter, ReportsChan}; +use profile_traits::mem::{Reporter, ReportsChan}; use script_traits::{ScriptControlChan, OpaqueScriptLayoutChannel, UntrustedNodeAddress}; use std::any::Any; use std::sync::mpsc::{channel, Receiver, Sender}; |