Evaluate using Profile-Guided Optimization (PGO) and LLVM BOLT
I maintainer di solito rispondono entro 1 giorno
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 5/5
- Tempo stimato
- Più di una settimana
- Idoneità per principianti
- 25/100
- Tipo di issue
- Funzionalità
- Chiarezza
- Abbastanza chiara
- Stato di attività
- Ferma
- Stack tecnologico
- rust
- Ambito
- performance
Direzione di ricerca
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.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
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
- Lingua principale
- Rust
- Stelle
- 469
- Fork
- 74
- Merge medio
- 17h 16m
- PR unite (30g)
- 10
Preparare l'ambiente
Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di mozilla/rust-code-analysis
-
mozcpp: refresh the list of Mozilla annotation macrosForse già presa Una pull request collegata a questa issue è aperta o già unita. Aperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 80/100
mozilla/rust-code-analysis#1267 ·
I maintainer di solito rispondono entro 1 giorno
-
mozcpp: parse a string literal followed by a PRI*/SCN* format macroForse già presa @marco-c l’ha presa 2 giorni fa. Aperta
Difficoltà 4/5 3-5 giorni Idoneità per principianti 15/100
mozilla/rust-code-analysis#1266 ·
I maintainer di solito rispondono entro 1 giorno
-
Grammar check tasks compare unrelated files and skip most of the othersForse di nuovo libera Una pull request per questa issue è stata chiusa senza essere unita. Aperta
Difficoltà 3/5 1-2 giorni Idoneità per principianti 45/100
mozilla/rust-code-analysis#1261 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 48/100
mozilla/rust-code-analysis#1250 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 48/100
mozilla/rust-code-analysis#1249 ·
I maintainer di solito rispondono entro 1 giorno
Tutte le issue di mozilla/rust-code-analysis
Issue simili
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
ubugeeei-prod/vize#13586 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 62/100
storytold/photocraft#16565 ·
I maintainer di solito rispondono entro 1 giorno
-
flaky needs-triage
Difficoltà 2/5 1-3 ore Idoneità per principianti 66/100
bherbruck/solvecraft#21315 ·
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
undergroundrap/hatchling#624 ·
I maintainer di solito rispondono entro 1 giorno
-
node:url: url.parse and url.resolve report name parse/resolve instead of Node's urlParse/urlResolveApertaarea:stdlib effort:S impact:low parity type:bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
I maintainer di solito rispondono entro 1 giorno