Class Central is learner-supported. When you buy through links on our site, we may earn an affiliate commission.

YouTube

Boosting Your Code with Profile-Guided Optimization

Conf42 via YouTube

Overview

Explore profile-guided optimization (PGO) techniques to enhance Golang code performance in this 31-minute conference talk from Conf42 Golang 2024. Delve into compiler magic, optimization strategies, and the concept of feedback-driven optimization. Learn how to implement PGO through a practical demonstration, comparing performance between optimized and non-optimized binaries. Gain insights into profiling, inlining, and other compiler optimizations to boost your Go programs' efficiency. Discover valuable references and connect with the speaker to further your understanding of advanced compilation techniques in Go.

Syllabus

intro
preamble
whoami
let's talk about compilation
the "magic" in compiler magic
more magic? compiler optimizations!
some examples
"inlining" - another interesting optimization
but what if?
just have the right amount of inlining
but compilers don't know a lot
clearly, compilers need more info!
feedback-driven optimization fdo
early days of fdo - instrumentation-based
looks solid on paper, but is it really that good?
so what do we want? let's talk first principles
easy enough
profiling!
how does it work then?
enter profile-guided optimization - pgo
a very simpel server
but if you notice carefully
inlining could've been useful here
let's run and profile the program
we have all these files now
now, let's compule with pgo
let's load test the old and new binaries
let's compare the performances
demo
conclusion
slied and ssociated content
references - the real gs
let's connect
thanks for your time folks!

Taught by

Conf42

Reviews

Start your review of Boosting Your Code with Profile-Guided Optimization

Never Stop Learning.

Get personalized course recommendations, track subjects and courses with reminders, and more.

Someone learning on their laptop while sitting on the floor.