Skip to content

Commit

Permalink
librustc: Speed up moves a lot. r=nmatsakis
Browse files Browse the repository at this point in the history
  • Loading branch information
pcwalton committed Feb 13, 2013
1 parent bc2d147 commit a165f88
Showing 1 changed file with 4 additions and 0 deletions.
4 changes: 4 additions & 0 deletions src/librustc/middle/ty.rs
Original file line number Diff line number Diff line change
Expand Up @@ -1932,6 +1932,10 @@ pub fn type_contents(cx: ctxt, ty: t) -> TypeContents {
Some(tc) => { return *tc; }
None => {}
}
match cx.tc_cache.find(&ty_id) { // Must check both caches!
Some(tc) => { return *tc; }
None => {}
}
cache.insert(ty_id, TC_NONE);
debug!("computing contents of %s", ty_to_str(cx, ty));
Expand Down

5 comments on commit a165f88

@bors
Copy link
Contributor

@bors bors commented on a165f88 Feb 13, 2013

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

saw approval from pcwalton
at pcwalton@a165f88

@bors
Copy link
Contributor

@bors bors commented on a165f88 Feb 13, 2013

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

merging pcwalton/rust/move-speedup = a165f88 into auto

@bors
Copy link
Contributor

@bors bors commented on a165f88 Feb 13, 2013

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

pcwalton/rust/move-speedup = a165f88 merged ok, testing candidate = 1a394e5

@bors
Copy link
Contributor

@bors bors commented on a165f88 Feb 13, 2013

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

@bors
Copy link
Contributor

@bors bors commented on a165f88 Feb 13, 2013

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

fast-forwarding incoming to auto = 1a394e5

Please sign in to comment.