# Nice talk about Go PGO. What is the state in Julia?

**URL:** <https://discourse.julialang.org/t/nice-talk-about-go-pgo-what-is-the-state-in-julia/115715>\
**Category:** Internals & Design\
**Tags:** profiling, developer-tools, compiler\
**Created:** [June 16, 2024, 3:16pm UTC](https://discourse.julialang.org/t/nice-talk-about-go-pgo-what-is-the-state-in-julia/115715 "2024-06-16T15:16:04Z")\
**Posts on this page:** 1\
**Showing post:** 3

<div class="post-metadata">

**Author:** ![nsajko](https://sea2.discourse-cdn.com/julialang/user_avatar/discourse.julialang.org/nsajko/32/221187_2.png) [@nsajko](https://discourse.julialang.org/u/nsajko)\
**Post date:** [June 16, 2024, 5:58pm UTC](https://discourse.julialang.org/t/nice-talk-about-go-pgo-what-is-the-state-in-julia/115715/3 "2024-06-16T17:58:35Z")

</div>

> [@Dan](#):
>
> What is the state of PGO in Julia?

Related thread:

> [@Has PGO for (re)compiling methods been considered?](https://discourse.julialang.org/t/has-pgo-for-re-compiling-methods-been-considered/97426):
>
> It just crossed my mind that it would be very nice if Julia provided some kind of profile-guided optimization (PGO) API. Something like: The user gathers a performance profile for some of their Julia code The user is now able to request a recompilation of their Julia code, feeding the profile to the Julia compiler to enable better optimizations, like, for example, [control height reduction](https://reviews.llvm.org/D50591) or [hot-cold splitting](https://groups.google.com/g/llvm-dev/c/RUegaMg-iqc/m/wFAVxa6fCgAJ). Step 2 could look like this: pgo\_anonymous\_function = recompile\_with\_pgo(m…

So there’s not much activity in this space, but see Tim Holy’s comment about profile-guided despecialization for a limited example.

---

_[View the full topic](https://discourse.julialang.org/t/nice-talk-about-go-pgo-what-is-the-state-in-julia/115715)._
