Repository navigation
rustdoc: Use source snippet to render include_* literals - #166414
Conversation
|
@bors try @rust-timer queue |
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
This comment has been minimized.
rustdoc: Use source snippet to render `include_*` literals
This comment has been minimized.
This comment has been minimized.
473b4bc to
ec40b86
Compare
|
cc @rust-lang/clippy |
This comment has been minimized.
This comment has been minimized.
|
Finished benchmarking commit (d4b2558): comparison URL. Overall result: ❌✅ regressions and improvements - please read:Benchmarking means the PR may be perf-sensitive. Consider adding rollup=never if this change is not fit for rolling up. Next, please: If you can, justify the regressions found in this try perf run in writing along with @bors rollup=iffy rustc-perf Instruction countOur most reliable metric. Used to determine the overall result above. However, even this metric can be noisy.
Max RSS (memory usage)Results (primary -1.4%, secondary -24.9%)A less reliable metric. May be of interest, but not used to determine the overall result above.
CyclesResults (primary 2.7%, secondary -12.1%)A less reliable metric. May be of interest, but not used to determine the overall result above.
Binary sizeThis perf run didn't have relevant results for this metric. Bootstrap: 462.881s -> 461.502s (-0.30%) |
|
It's quite nice, thanks! @bors r+ rollup=iffy |
…aumeGomez rustdoc: Use source snippet to render `include_*` literals Related: rust-lang#65818 A substantial portion of the slowness from `include_bytes!` on large blobs comes from escaping these blobs and encoding that rendered string into the rlib. For `include` macros, rendering a source snippet is much more performant and IMO clearer. r? rustdoc (as this is only consumed by rustdoc)
…aumeGomez rustdoc: Use source snippet to render `include_*` literals Related: rust-lang#65818 A substantial portion of the slowness from `include_bytes!` on large blobs comes from escaping these blobs and encoding that rendered string into the rlib. For `include` macros, rendering a source snippet is much more performant and IMO clearer. r? rustdoc (as this is only consumed by rustdoc)
…aumeGomez rustdoc: Use source snippet to render `include_*` literals Related: rust-lang#65818 A substantial portion of the slowness from `include_bytes!` on large blobs comes from escaping these blobs and encoding that rendered string into the rlib. For `include` macros, rendering a source snippet is much more performant and IMO clearer. r? rustdoc (as this is only consumed by rustdoc)
…uwer Rollup of 14 pull requests Successful merges: - #165847 (Skip fulfillment when normalization produces no obligations) - #166147 (Lower to `hir::Param`s for required trait functions) - #166414 (rustdoc: Use source snippet to render `include_*` literals) - #166497 (Integrate doc comment target checking on parameters & where bounds) - #166500 (Fix float zero patterns after a failed guard) - #165791 (Sync tier 3 addition policy with Forge) - #166400 (Revert "stabilize {Arc,Rc}::is_unique") - #166417 (Correctly specify that the head cannot be >= capacity) - #166448 (triagebot: Send "in progress" message when nomination is in progress) - #166494 (rustc_target: catch up with LLVM 24 movement on ppc64 openbsd data layout) - #166498 (Update the Platform Support page for the *-espidf targets) - #166502 ([rustdoc] Fix rustc_private items being marked as unstable in the search results) - #166511 (Documentation: clarify Termination::report doc) - #166514 (coroutine: unify the word choice)
…uwer Rollup of 14 pull requests Successful merges: - #165847 (Skip fulfillment when normalization produces no obligations) - #166147 (Lower to `hir::Param`s for required trait functions) - #166414 (rustdoc: Use source snippet to render `include_*` literals) - #166497 (Integrate doc comment target checking on parameters & where bounds) - #166500 (Fix float zero patterns after a failed guard) - #165791 (Sync tier 3 addition policy with Forge) - #166400 (Revert "stabilize {Arc,Rc}::is_unique") - #166417 (Correctly specify that the head cannot be >= capacity) - #166448 (triagebot: Send "in progress" message when nomination is in progress) - #166494 (rustc_target: catch up with LLVM 24 movement on ppc64 openbsd data layout) - #166498 (Update the Platform Support page for the *-espidf targets) - #166502 ([rustdoc] Fix rustc_private items being marked as unstable in the search results) - #166511 (Documentation: clarify Termination::report doc) - #166514 (coroutine: unify the word choice)
…aumeGomez rustdoc: Use source snippet to render `include_*` literals Related: rust-lang#65818 A substantial portion of the slowness from `include_bytes!` on large blobs comes from escaping these blobs and encoding that rendered string into the rlib. For `include` macros, rendering a source snippet is much more performant and IMO clearer. r? rustdoc (as this is only consumed by rustdoc)
…uwer Rollup of 15 pull requests Successful merges: - #166429 (1.100.1 relnotes) - #165847 (Skip fulfillment when normalization produces no obligations) - #166147 (Lower to `hir::Param`s for required trait functions) - #166414 (rustdoc: Use source snippet to render `include_*` literals) - #166497 (Integrate doc comment target checking on parameters & where bounds) - #166500 (Fix float zero patterns after a failed guard) - #165791 (Sync tier 3 addition policy with Forge) - #166400 (Revert "stabilize {Arc,Rc}::is_unique") - #166417 (Correctly specify that the head cannot be >= capacity) - #166448 (triagebot: Send "in progress" message when nomination is in progress) - #166494 (rustc_target: catch up with LLVM 24 movement on ppc64 openbsd data layout) - #166498 (Update the Platform Support page for the *-espidf targets) - #166502 ([rustdoc] Fix rustc_private items being marked as unstable in the search results) - #166511 (Documentation: clarify Termination::report doc) - #166514 (coroutine: unify the word choice)
…uwer Rollup of 15 pull requests Successful merges: - #166429 (1.100.1 relnotes) - #165847 (Skip fulfillment when normalization produces no obligations) - #166147 (Lower to `hir::Param`s for required trait functions) - #166414 (rustdoc: Use source snippet to render `include_*` literals) - #166497 (Integrate doc comment target checking on parameters & where bounds) - #166500 (Fix float zero patterns after a failed guard) - #165791 (Sync tier 3 addition policy with Forge) - #166400 (Revert "stabilize {Arc,Rc}::is_unique") - #166417 (Correctly specify that the head cannot be >= capacity) - #166448 (triagebot: Send "in progress" message when nomination is in progress) - #166494 (rustc_target: catch up with LLVM 24 movement on ppc64 openbsd data layout) - #166498 (Update the Platform Support page for the *-espidf targets) - #166502 ([rustdoc] Fix rustc_private items being marked as unstable in the search results) - #166511 (Documentation: clarify Termination::report doc) - #166514 (coroutine: unify the word choice)
Rollup of 15 pull requests Successful merges: - #165847 (Skip fulfillment when normalization produces no obligations) - #166147 (Lower to `hir::Param`s for required trait functions) - #166414 (rustdoc: Use source snippet to render `include_*` literals) - #166497 (Integrate doc comment target checking on parameters & where bounds) - #166500 (Fix float zero patterns after a failed guard) - #165791 (Sync tier 3 addition policy with Forge) - #166417 (Correctly specify that the head cannot be >= capacity) - #166429 (1.100.1 relnotes) - #166448 (triagebot: Send "in progress" message when nomination is in progress) - #166494 (rustc_target: catch up with LLVM 24 movement on ppc64 openbsd data layout) - #166498 (Update the Platform Support page for the *-espidf targets) - #166502 ([rustdoc] Fix rustc_private items being marked as unstable in the search results) - #166511 (Documentation: clarify Termination::report doc) - #166514 (coroutine: unify the word choice) - #166521 (Not-so-pointless change to hashbrown subtree)
Rollup merge of #166414 - clubby789:include-snippet, r=GuillaumeGomez rustdoc: Use source snippet to render `include_*` literals Related: #65818 A substantial portion of the slowness from `include_bytes!` on large blobs comes from escaping these blobs and encoding that rendered string into the rlib. For `include` macros, rendering a source snippet is much more performant and IMO clearer. r? rustdoc (as this is only consumed by rustdoc)
Rollup of 15 pull requests Successful merges: - rust-lang/rust#165847 (Skip fulfillment when normalization produces no obligations) - rust-lang/rust#166147 (Lower to `hir::Param`s for required trait functions) - rust-lang/rust#166414 (rustdoc: Use source snippet to render `include_*` literals) - rust-lang/rust#166497 (Integrate doc comment target checking on parameters & where bounds) - rust-lang/rust#166500 (Fix float zero patterns after a failed guard) - rust-lang/rust#165791 (Sync tier 3 addition policy with Forge) - rust-lang/rust#166417 (Correctly specify that the head cannot be >= capacity) - rust-lang/rust#166429 (1.100.1 relnotes) - rust-lang/rust#166448 (triagebot: Send "in progress" message when nomination is in progress) - rust-lang/rust#166494 (rustc_target: catch up with LLVM 24 movement on ppc64 openbsd data layout) - rust-lang/rust#166498 (Update the Platform Support page for the *-espidf targets) - rust-lang/rust#166502 ([rustdoc] Fix rustc_private items being marked as unstable in the search results) - rust-lang/rust#166511 (Documentation: clarify Termination::report doc) - rust-lang/rust#166514 (coroutine: unify the word choice) - rust-lang/rust#166521 (Not-so-pointless change to hashbrown subtree)
|
Note This PR was benchmarked as part of triage of its containing rollup: triage URL. Finished benchmarking commit (8c8d1c4): comparison URL. Overall result: ❌✅ regressions and improvements - please read:Our benchmarks found a performance regression caused by this PR. Next Steps:
@rustbot label: +perf-regression Instruction countOur most reliable metric. Used to determine the overall result above. However, even this metric can be noisy.
Max RSS (memory usage)Results (secondary -37.2%)A less reliable metric. May be of interest, but not used to determine the overall result above.
CyclesResults (secondary -44.0%)A less reliable metric. May be of interest, but not used to determine the overall result above.
Binary sizeThis perf run didn't have relevant results for this metric. Artifact size: 405.64 MiB -> 405.63 MiB (-0.00%) |
|
Rollup of 15 pull requests Successful merges: - rust-lang/rust#165847 (Skip fulfillment when normalization produces no obligations) - rust-lang/rust#166147 (Lower to `hir::Param`s for required trait functions) - rust-lang/rust#166414 (rustdoc: Use source snippet to render `include_*` literals) - rust-lang/rust#166497 (Integrate doc comment target checking on parameters & where bounds) - rust-lang/rust#166500 (Fix float zero patterns after a failed guard) - rust-lang/rust#165791 (Sync tier 3 addition policy with Forge) - rust-lang/rust#166417 (Correctly specify that the head cannot be >= capacity) - rust-lang/rust#166429 (1.100.1 relnotes) - rust-lang/rust#166448 (triagebot: Send "in progress" message when nomination is in progress) - rust-lang/rust#166494 (rustc_target: catch up with LLVM 24 movement on ppc64 openbsd data layout) - rust-lang/rust#166498 (Update the Platform Support page for the *-espidf targets) - rust-lang/rust#166502 ([rustdoc] Fix rustc_private items being marked as unstable in the search results) - rust-lang/rust#166511 (Documentation: clarify Termination::report doc) - rust-lang/rust#166514 (coroutine: unify the word choice) - rust-lang/rust#166521 (Not-so-pointless change to hashbrown subtree)
Related: #65818
A substantial portion of the slowness from
include_bytes!on large blobs comes from escaping these blobs and encoding that rendered string into the rlib. Forincludemacros, rendering a source snippet is much more performant and IMO clearer.r? rustdoc (as this is only consumed by rustdoc)