schubergphilis / mcvs-golang-action

Mission Critical Vulnerability Scanner (MCVS) Golang Action. Create Golang code without high and critical vulnerabilities.
MIT License
0 stars 1 forks source link

enable -pgo #32

Closed sbp-bvanb closed 1 week ago

sbp-bvanb commented 8 months ago

Check whether it is enabled by default and otherwise add it to the pipeline.

030 commented 5 months ago

https://go.dev/doc/pgo

sbp-bvanb commented 1 week ago
Profile-guided optimization (PGO) in Go, introduced in version 1.20+ and refined in 1.21, is a method to improve application performance by using runtime profiles to inform compilation decisions. PGO enables the Go compiler to optimize code based on actual runtime behavior, such as inlining hot functions or reducing unnecessary allocations, potentially yielding performance gains of 2-7% in certain workloads.