Skip to content

Add information about PGO and BOLT effects on Rustc performance to the documentation #115251

Closed
@zamazan4ik

Description

@zamazan4ik

Location

Don't know the right place for this information - needs to be clarified.

Summary

The official Rustc distribution is not the only Rustc binary version, which is used by Rust users. E.g. there are provided by multiple OS packages (like Fedora rust package) or even built in-house Rustc version (due to some not-so-rare specific security requirements).

According to the great @Kobzol work, PGO and LLVM BOLT helps a lot with optimizing Rustc performance. We need to document somewhere the PGO and BOLT benefits for rustc performance and a guide - how these optimizations could be applied to rustc if a user/maintainer wants to build rustc on their own.

Here are the examples of PGO mentions in the documentation for other projects:

I didn't find a place where to put this information, so we can discuss it here. If there is no dedicated place and we don't want to create it - maybe a README would be a good place (since it already has build instructions)?

Metadata

Metadata

Assignees

No one assigned

    Labels

    A-docsArea: Documentation for any part of the project, including the compiler, standard library, and toolsT-infraRelevant to the infrastructure team, which will review and decide on the PR/issue.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions