Evaluate using Profile-Guided Optimization (PGO) and LLVM BOLT
Los mantenedores suelen responder en 1 día
Nadie ha tomado este issue todavía.
Evaluación
- Dificultad
- 5/5
- Tiempo estimado
- Más de una semana
- Aptitud para principiantes
- 25/100
- Tipo de issue
- Nueva funcionalidad
- Claridad
- Bastante claro
- Estado de actividad
- Estancado
- Stack tecnológico
- rust
- Área
- performance
Línea de trabajo
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.
Escrito por el modelo de indexación a partir del texto del issue.
Descripción
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
- Lenguaje dominante
- Rust
- Estrellas
- 469
- Forks
- 74
- Merge medio
- 17 h 16 min
- PR fusionados (30 d)
- 10
Preparar el entorno
Este proyecto no incluye contenedor de desarrollo, Dockerfile ni guía de contribución, así que la configuración corre por tu cuenta: empieza por su README y consulta nuestra guía para la primera contribución para los pasos generales.
Primeros pasos
- Lee el issue completo y luego la guía de contribución del proyecto.
- Comenta en el issue que vas a ocuparte — evita que dos personas hagan lo mismo.
- Haz un fork del repositorio y trabaja en una rama.
- Abre un pull request que haga referencia al número del issue.
Más de mozilla/rust-code-analysis
-
mozcpp: refresh the list of Mozilla annotation macrosPosiblemente ocupada Un pull request vinculado a esta issue está abierto o ya se fusionó. Abierto
Dificultad 2/5 1-3 horas Aptitud para principiantes 80/100
mozilla/rust-code-analysis#1267 ·
Los mantenedores suelen responder en 1 día
-
mozcpp: parse a string literal followed by a PRI*/SCN* format macroPosiblemente ocupada @marco-c la tomó hace 2 días. Abierto
Dificultad 4/5 3-5 días Aptitud para principiantes 15/100
mozilla/rust-code-analysis#1266 ·
Los mantenedores suelen responder en 1 día
-
Grammar check tasks compare unrelated files and skip most of the othersQuizá libre de nuevo Un pull request para esta issue se cerró sin fusionarse. Abierto
Dificultad 3/5 1-2 días Aptitud para principiantes 45/100
mozilla/rust-code-analysis#1261 · 1 comentario ·
Los mantenedores suelen responder en 1 día
-
Dificultad 4/5 3-5 días Aptitud para principiantes 48/100
mozilla/rust-code-analysis#1250 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 4/5 3-5 días Aptitud para principiantes 48/100
mozilla/rust-code-analysis#1249 ·
Los mantenedores suelen responder en 1 día
Todos los issues de mozilla/rust-code-analysis
Issues similares
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 68/100
Los mantenedores suelen responder en 1 día
-
Dificultad 1/5 Menos de una hora Aptitud para principiantes 92/100
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 80/100
speakeasy-api/speakeasy#2159 ·
Los mantenedores suelen responder en 1 día
-
documentation target:powerpoint
Dificultad 1/5 Menos de una hora Aptitud para principiantes 76/100
tomast1337/PdfLapas#602 ·
Los mantenedores suelen responder en 1 día
-
Dificultad 2/5 1-3 horas Aptitud para principiantes 72/100
r-lib/rig#535 · 2 comentarios ·
Los mantenedores suelen responder en 1 día