HackerTrans
TopNewTrendsCommentsPastAskShowJobs

suessflorian

no profile record

Submissions

Go: What a central PGO server could look like

github.com
3 points·by suessflorian·3 năm trước·1 comments

comments

suessflorian
·3 năm trước·discuss
Hi! Intrigued by the recent publicity of profile-guided optimisations in Go 1.20 and 1.21. Thought it'd be cool to build something simple that could be used to streamline go service pgo initiatives.

Presented is just an idea; it is intentionally rudimentary. Will give a go measuring this in an actual environment and collecting some metrics.

Any feedback on this topic would be highly appreciated. Thanks.
suessflorian
·3 năm trước·discuss
Nice - but hang on a second, I thought you cannot shadow language keywords in Go. So projects bumping to 1.21 in the future should be aware that you will run into compile time errors all of a sudden… doesn’t that actually break the compatibility promise?

    max := something()
https://go.dev/doc/go1compat