]> git.lizzy.rs Git - rust.git/commit
Optimize ObligationForest's NodeState handling.
authorNicholas Nethercote <nnethercote@mozilla.com>
Thu, 20 Oct 2016 05:26:36 +0000 (16:26 +1100)
committerNicholas Nethercote <nnethercote@mozilla.com>
Wed, 2 Nov 2016 02:37:10 +0000 (13:37 +1100)
commit7b33f7e3e77794e8a44d07d97bc7b62ab9f79981
treee7a8351f03748b8e79e2b226a0c7d84df2c71978
parent4497196ba56e5839bf4ef674851fd06d942c5544
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.
src/librustc_data_structures/obligation_forest/mod.rs