From 2faa2ceaeaa0fe61a762747e1aa8793f425e4f22 Mon Sep 17 00:00:00 2001 From: The8472 Date: Sun, 29 Aug 2021 16:05:38 +0200 Subject: [PATCH 1/2] inline path::Components::parse_next_component_back() Profiling showed that parse_next_component() does get inlined, inline the backwards variant to match its perf characteristics --- library/std/src/path.rs | 1 + 1 file changed, 1 insertion(+) diff --git a/library/std/src/path.rs b/library/std/src/path.rs index 2a9c361c18afc..149e4196c4bca 100644 --- a/library/std/src/path.rs +++ b/library/std/src/path.rs @@ -739,6 +739,7 @@ impl<'a> Components<'a> { // parse a component from the right, saying how many bytes to consume to // remove the component + #[inline] fn parse_next_component_back(&self) -> (usize, Option>) { debug_assert!(self.back == State::Body); let start = self.len_before_body(); From f8a284e9b3cce12dec2cb16ee3232a43e4133511 Mon Sep 17 00:00:00 2001 From: The8472 Date: Sun, 29 Aug 2021 21:07:51 +0200 Subject: [PATCH 2/2] add Doc builds to PGO --- src/ci/pgo.sh | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/ci/pgo.sh b/src/ci/pgo.sh index e35e3e670cc64..d8ff176383fba 100755 --- a/src/ci/pgo.sh +++ b/src/ci/pgo.sh @@ -5,7 +5,7 @@ set -euxo pipefail rm -rf /tmp/rustc-pgo python3 ../x.py build --target=$PGO_HOST --host=$PGO_HOST \ - --stage 2 library/std \ + --stage 2 library/std rustdoc \ --rust-profile-generate=/tmp/rustc-pgo \ --llvm-profile-generate @@ -35,7 +35,7 @@ RUSTC_BOOTSTRAP=1 \ eprintln \ /checkout/obj/build/$PGO_HOST/stage2/bin/rustc \ Test \ - --builds Check,Debug,Opt \ + --builds Check,Debug,Opt,Doc \ --cargo /checkout/obj/build/$PGO_HOST/stage0/bin/cargo \ --runs All \ --include externs,ctfe-stress-4,inflate,cargo,token-stream-stress,match-stress-enum