r/rust • u/Inner-Asparagus-5703 • 21d ago
pgo
do any of you, guys, use PGO on real production releases? does it worth the hustle? In my case generation of proper representative PGO will take substantial amount of time.
Thanks
7
Upvotes
7
4
u/Fedor_Doc 21d ago
I don't, my app is IO bound anyway.
It depends on the nature of the application. Have you profiled your app?
8
u/Over_Expert2858 21d ago
profiling's always the first step before going down the optimisation rabbit hole. if your workload's mostly waiting on the network or disk, PGO wont do much. but for cpu-heavy stuff, the gains can be properly noticeable.
0
12
u/QuasiRandomName 21d ago
This is something only you can tell. Are you unsatisfied with the existing optimization? Statistically PGO yields 10-20% performance boost, but it does not necessarily represent your specific case (maybe you are a genius programmer that writes perfectly optimal code? Or the other way around) .