Profile-Guided Optimization (PGO) for Rust applications: Practical Guide

Profile-Guided Optimization (PGO) is a compiler optimization technique that helps with optimizing software based on runtime statistics. This optimization is available for a long time in the Rustc compiler. I applied PGO to many kinds of software (compilers, databases, log solutions, CLI tools, and many more), collected a lot of carefully hidden traps on my journey, reviewed many open-source projects, and found multiple PGO integration approaches. In this talk, I want to share with you my experience.

LEVEL: Intermediate

Place
RustLab Discovery
Length
40 min
When
November 11th, 2024
15:00

Abstract

Profile-Guided Optimization (PGO) is a compiler optimization technique that helps with optimizing software based on runtime statistics. This optimization is available for a long time in the Rustc compiler. I applied PGO to many kinds of software (compilers, databases, log solutions, CLI tools, and many more), collected a lot of carefully hidden traps on my journey, reviewed many open-source projects, and found multiple PGO integration approaches. In this talk, I want to share with you my experience.
We will discuss the following topics:

- Very quick overview of what is PGO
- Most and less common PGO traps that you can meet in your journey and how to mitigate them.
- Review where and how PGO is already integrated in different places of the Rust ecosystem
- Review how PGO is integrated into open-source projects at different levels: projects, build scripts, distributions, and discuss main problems with them
- A lot of pieces of advice about PGO integration into your software.
- And of course answer all your questions about the integration of PGO into your software!

After the talk, you will know about many ways how your software can be optimized with PGO in practice.

RustLab is a conference made by Develer.
Develer is a company based in Campi Bisenzio, near Florence. Our motto is : "Technology to give life to your products". We produce hardware and software to create exceptional products and to improve industrial processes and people's well being.
In Develer we have passion for the new technologies and we offer our clients effective solutions that are also efficient, simple and safe for the end users. We also believe in a friendly and welcoming environment where anybody can give their contribution. This passion and this vision are what we've been driven to organize our conference "made by developers for developers".

Subscribe to our newsletter

We hate spam just as much as you do, which is why we promise to only send you relevant communications. We respect your privacy and will never share your information with third parties.
©2024 RustLab | The international conference on Rust in Florence-Design & devCantiere Creativo-Made withDatoCMS