The pydantic project had a bit of success adding PGO to their builds, as shown in the relevant PRs:
I'm not sure if we'd see similar performance improvements from adding this to our build chain, but a 10-20% improvement might be doable and would not add much to actual release builds.
Let's investigate.