about summary refs log tree commit diff
path: root/src/libstd
diff options
context:
space:
mode:
authorNicholas Nethercote <nnethercote@mozilla.com>2016-10-20 16:26:36 +1100
committerNicholas Nethercote <nnethercote@mozilla.com>2016-11-02 13:37:10 +1100
commit7b33f7e3e77794e8a44d07d97bc7b62ab9f79981 (patch)
treee7a8351f03748b8e79e2b226a0c7d84df2c71978 /src/libstd
parent4497196ba56e5839bf4ef674851fd06d942c5544 (diff)
downloadrust-7b33f7e3e77794e8a44d07d97bc7b62ab9f79981.tar.gz
rust-7b33f7e3e77794e8a44d07d97bc7b62ab9f79981.zip
Optimize ObligationForest's NodeState handling.
This commit partially inlines two functions, `find_cycles_from_node` and
`mark_as_waiting_from`, at two call sites in order to avoid function
unnecessary function calls on hot paths.

It also fully inlines and removes `is_popped`.

These changes speeds up rustc-benchmarks/inflate-0.1.0 by about 2% when
doing debug builds with a stage1 compiler.
Diffstat (limited to 'src/libstd')
0 files changed, 0 insertions, 0 deletions