mirror of
https://github.com/servo/servo.git
synced 2025-08-02 20:20:14 +01:00
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`.
This commit is contained in:
parent
826b722202
commit
092507d23c
37 changed files with 269 additions and 225 deletions
|
@ -5,7 +5,7 @@
|
|||
extern crate gfx;
|
||||
extern crate script_traits;
|
||||
extern crate msg;
|
||||
extern crate profile;
|
||||
extern crate profile_traits;
|
||||
extern crate net_traits;
|
||||
extern crate url;
|
||||
extern crate util;
|
||||
|
@ -18,8 +18,8 @@ extern crate util;
|
|||
use gfx::font_cache_task::FontCacheTask;
|
||||
use gfx::paint_task::PaintChan;
|
||||
use msg::constellation_msg::{ConstellationChan, Failure, PipelineId, PipelineExitType};
|
||||
use profile::mem;
|
||||
use profile::time;
|
||||
use profile_traits::mem;
|
||||
use profile_traits::time;
|
||||
use net_traits::ResourceTask;
|
||||
use net_traits::image_cache_task::ImageCacheTask;
|
||||
use url::Url;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue