Evaluate using Profile-Guided Optimization (PGO) and LLVM BOLT
Les mainteneurs répondent en général sous 1 jour
Personne n'a encore pris cette issue.
Évaluation
- Difficulté
- 5/5
- Temps estimé
- Plus d'une semaine
- Accessibilité débutants
- 25/100
- Type d'issue
- Fonctionnalité
- Clarté
- Plutôt claire
- Activité
- À l'abandon
- Stack technique
- rust
- Domaine
- performance
Piste de recherche
Start by reading the Rust project's build and benchmark setup, then evaluate PGO with cargo-pgo using representative Rust-Code-Analysis workloads. Compare performance before and after PGO, and investigate LLVM BOLT only after assessing PGO. The issue proposes documenting measured improvements, adding an optional PGO build path, and optimizing prebuilt binaries; agree on scope and report reproducible results.
Rédigé par le modèle d'indexation à partir du texte de l'issue.
Description
Hi!
Recently I checked Profile-Guided Optimization (PGO) improvements on multiple projects. The results are here. E.g. PGO results for LLVM-related tooling are here. According to the tests, PGO usually helps with the compiler and compiler-like workloads (like static analysis) - e.g. Clang gets +20% compilation speed with PGO. That's why I think trying to optimize the Rust-Code-Analysis tool with PGO can be a good idea.
I can suggest the following action points:
- Perform PGO benchmarks on Rust-Code-Analysis. And if it shows improvements - add a note about possible improvements in Rust-Code-Analysis's tool performance with PGO.
- Providing an easier way (e.g. a build option) to build scripts with PGO can be helpful for the end-users and maintainers since they will be able to optimize the Rust-Code-Analysis tool according to their own workloads.
- Optimize pre-built binaries
Testing Post-Link Optimization techniques (like LLVM BOLT) would be interesting too (Clang and Rustc already use BOLT as an addition to PGO) but I recommend starting from the usual PGO.
I recommend trying to use PGO with cargo-pgo for the Rust code.
Here are some examples of how PGO optimization is integrated in other projects:
- Rustc: a CI script for the multi-stage build
- GCC:
- Clang: Docs
- Python:
- Go: Bash script
- V8: Bazel flag
- ChakraCore: Scripts
- Chromium: Script
- Firefox: Docs
- Thunderbird has PGO support too
- PHP - Makefile command and old Centminmod scripts
- MySQL: CMake script
- YugabyteDB: GitHub commit
- FoundationDB: Script
- Zstd: Makefile
- Foot: Scripts
- Windows Terminal: GitHub PR
- Pydantic-core: GitHub PR
- file.d: GitHub PR
- OceanBase: CMake flag
- Langage dominant
- Rust
- Étoiles
- 469
- Forks
- 74
- Merge moyen
- 17 h 16 min
- PR mergées (30 j)
- 10
Préparer son environnement
Ce projet ne fournit ni conteneur de développement, ni Dockerfile, ni guide de contribution : l'installation est à votre charge. Commencez par son README, et consultez notre guide de la première contribution pour les étapes générales.
Par où commencer
- Lisez l'issue en entier, puis le guide de contribution du projet.
- Signalez en commentaire que vous la prenez — cela évite que deux personnes fassent le même travail.
- Forkez le dépôt et travaillez sur une branche.
- Ouvrez une pull request qui référence le numéro de l'issue.
Autres issues de mozilla/rust-code-analysis
-
mozcpp: refresh the list of Mozilla annotation macrosPeut-être pris Une pull request liée à cette issue est ouverte ou déjà fusionnée. Ouverte
Difficulté 2/5 1-3 heures Accessibilité débutants 80/100
mozilla/rust-code-analysis#1267 ·
Les mainteneurs répondent en général sous 1 jour
-
mozcpp: parse a string literal followed by a PRI*/SCN* format macroPeut-être pris @marco-c l’a pris il y a 2 jours. Ouverte
Difficulté 4/5 3-5 jours Accessibilité débutants 15/100
mozilla/rust-code-analysis#1266 ·
Les mainteneurs répondent en général sous 1 jour
-
Grammar check tasks compare unrelated files and skip most of the othersPeut-être à nouveau libre Une pull request pour cette issue a été fermée sans être fusionnée. Ouverte
Difficulté 3/5 1-2 jours Accessibilité débutants 45/100
mozilla/rust-code-analysis#1261 · 1 commentaire ·
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 4/5 3-5 jours Accessibilité débutants 48/100
mozilla/rust-code-analysis#1250 ·
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 4/5 3-5 jours Accessibilité débutants 48/100
mozilla/rust-code-analysis#1249 ·
Les mainteneurs répondent en général sous 1 jour
Toutes les issues de mozilla/rust-code-analysis
Issues similaires
-
Difficulté 2/5 1-3 heures Accessibilité débutants 82/100
ubugeeei-prod/vize#13586 ·
Les mainteneurs répondent en général sous 1 jour
-
Difficulté 2/5 1-3 heures Accessibilité débutants 62/100
storytold/photocraft#16565 ·
Les mainteneurs répondent en général sous 1 jour
-
flaky needs-triage
Difficulté 2/5 1-3 heures Accessibilité débutants 66/100
bherbruck/solvecraft#21315 ·
-
bug
Difficulté 2/5 1-3 heures Accessibilité débutants 75/100
undergroundrap/hatchling#624 ·
Les mainteneurs répondent en général sous 1 jour
-
node:url: url.parse and url.resolve report name parse/resolve instead of Node's urlParse/urlResolveOuvertearea:stdlib effort:S impact:low parity type:bug
Difficulté 2/5 1-3 heures Accessibilité débutants 82/100
Les mainteneurs répondent en général sous 1 jour