File tree Expand file tree Collapse file tree 2 files changed +12
-2
lines changed Expand file tree Collapse file tree 2 files changed +12
-2
lines changed Original file line number Diff line number Diff line change 1
1
---
2
- refs/heads/master: 05587ebdff53def560e04e853fbb3c272fa586d6
2
+ refs/heads/master: 031e86ca2d3f070d22d6efbebe42e75d606503b3
Original file line number Diff line number Diff line change @@ -1617,14 +1617,24 @@ fn get_static_tydesc(&@block_ctxt cx,
1617
1617
ret info;
1618
1618
}
1619
1619
case ( none[ @tydesc_info] ) {
1620
+
1621
+ // FIXME: Use of a simplified tydesc (w/o names) removes a lot of
1622
+ // generated glue, but the compile time goes way down due to
1623
+ // greatly increasing the miss rate on the type_of cache elsewhere
1624
+ // in this file. Experiment with other approaches to this.
1625
+
1626
+ /*
1620
1627
fn simplifier(ty.t typ) -> ty.t {
1621
1628
ret @rec(cname=none[str] with *typ);
1622
1629
}
1623
1630
auto f = simplifier;
1624
1631
auto t_simplified = ty.fold_ty(cx.fcx.lcx.ccx.tcx, f, t);
1625
1632
auto info = declare_tydesc(cx.fcx.lcx, t_simplified);
1626
- cx. fcx. lcx. ccx. tydescs. insert( t, info) ;
1627
1633
cx.fcx.lcx.ccx.tydescs.insert(t_simplified, info);
1634
+ */
1635
+
1636
+ auto info = declare_tydesc( cx. fcx. lcx, t) ;
1637
+ cx. fcx. lcx. ccx. tydescs. insert( t, info) ;
1628
1638
define_tydesc( cx. fcx. lcx, t, ty_params) ;
1629
1639
ret info;
1630
1640
}
You can’t perform that action at this time.
0 commit comments