]> git.lizzy.rs Git - rust.git/commit
Reduce the `DepNode` pre-allocation ratio.
authorNicholas Nethercote <nnethercote@mozilla.com>
Mon, 1 Apr 2019 05:40:45 +0000 (16:40 +1100)
committerNicholas Nethercote <nnethercote@mozilla.com>
Mon, 15 Apr 2019 04:00:17 +0000 (14:00 +1000)
commit304a7be7a875e76a040bce0d1247d17d475e460a
tree1c0ef2ed6d0fff3d3d627c25891471ef31377027
parent9cd61f025b1b92076e69a9ef2d9233325c7d8bdc
Reduce the `DepNode` pre-allocation ratio.

A code size of increase of 15% is overly generous. 2% is more realistic.

This change reduces peak memory size by 20+ MiB on some workloads.
src/librustc/dep_graph/graph.rs