about summary refs log tree commit diff
path: root/src/libstd/sys/windows/stack_overflow.rs
diff options
context:
space:
mode:
authorbors <bors@rust-lang.org>2015-09-11 14:45:32 +0000
committerbors <bors@rust-lang.org>2015-09-11 14:45:32 +0000
commitfbeef72163200ee442ff14929b79763c82993c0e (patch)
treeb10a94c0f76bfcc9922d49e443e6631299fcda62 /src/libstd/sys/windows/stack_overflow.rs
parent1a1e6b85f6f0976aad5bf3bd6aec7403163c62cc (diff)
parent9104a902c052c1ad7fd5c1245cb1e03f88aa2f70 (diff)
downloadrust-fbeef72163200ee442ff14929b79763c82993c0e.tar.gz
rust-fbeef72163200ee442ff14929b79763c82993c0e.zip
Auto merge of #28354 - dotdash:slow_plat, r=eddyb
When the inliner has to decided if it wants to inline a function A into an
internal function B, it first checks whether it would be more profitable
to inline B into its callees instead. This means that it has to analyze
B, which involves checking the assumption cache. Building the assumption
cache requires scanning the whole function, and because inlining
currently clears the assumption cache, this scan happens again and
again, getting even slower as the function grows from inlining.

As inlining the huge find functions isn't really useful anyway, we can
mark them as noinline, which skips the cost analysis and reduces compile
times by as much as 70%.

cc #28273
Diffstat (limited to 'src/libstd/sys/windows/stack_overflow.rs')
0 files changed, 0 insertions, 0 deletions