LOADING

Profile-Guided Optimization (PGO) in Rust: unknown parts

I applied PGO to many kinds of software, collected a lot of carefully hidden traps on my journey, and found multiple ways how to avoid them. In this talk, I want to share with you my experience.

Aliaksandr Zaitsau
CTO at Cytopus
About This Talk

Profile-Guided Optimization (PGO) is a compiler optimization technique that helps with optimizing software based on a collected in runtime profile. This optimization is available for a long time in the Rustc compiler. But how smooth will be your experience when you try to adopt PGO in practice?

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, and found multiple ways how to avoid them. In this talk, I want to share with you my experience.

We will discuss the following topics:

* What is PGO and why do we need it?

* PGO performance benefits in practice (with a lot of numbers for actual open-source software)

* What kinds of PGO do we have nowadays?

* Pros and cons of each PGO way.

* Most and less common PGO traps that you can meet in your journey and how to mitigate them.

* PGO state in the Rust ecosystem: compilers, build systems, community tooling.

* A lot of pieces of advice about PGO integration into your software.

* And of course answer all your questions about PGO!

After the talk, you will be much more prepared for doing PGO in practice and even will be aware of more advanced optimization techniques like Post-Link Optimization (PLO), ML-based compiler optimization and other interesting stuff from the optimization field.

more great talks

Might Be Interesting

Day 1
  —  
9:35 am
arrow pointing right icon

Reasoning with Async Rust

In this talk, we'll explore reasoning with async Rust. We'll be introduced to its fundamental building blocks, such as `async`, `await`, `join` and `select`, and learn how to predict the behavior of code written with them.

Day 1
  —  
4:15 pm
arrow pointing right icon

The simplest way to build resilient applications

In this talk, we will discuss how you can use Durable Execution to harden your applications in a few key areas: workflows, asynchronous tasks, microservice orchestration, and event processing.

Day 1
  —  
7:00 pm
arrow pointing right icon

Rustikon afterparty

Join us at the Rustikon afterparty!

Day 1
  —  
3:10 pm
arrow pointing right icon

Easy cross-compilation with icedragon

In this lightning talk, we will explore the reasons why Icedragon was created, what makes it unique, and how you can use it to provide portable builds for your projects.

Day 1
  —  
10:45 am
arrow pointing right icon

ArcShift: Going faster than RwLock

In this lightning talk, we take a look at ArcShift, a lock-free data structure for shared data that still needs to be mutated.

See All Events
Join us!

We're looking for amazing speakers.
CFP is open till 10.01.2023

Fill in Call for Papers
location icon

Location

Centrum Konferencyjne POLIN, Poland
stay in touch icon

Follow Us

Contact Us