6 ms·
Awesome stuff! Does Go have profile-guided optimization? I'm wondering whether a profile could hint to the compiler how large to make the pre-reserved stack spa
by anematode 8mo ago
Awesome stuff! Does Go have profile-guided optimization? I'm wondering whether a profile could hint to the compiler how large to make the pre-reserved stack space.
- tptacek 8mo agoYep. `go build -pgo=foo.pprof` https://go.dev/doc/pgo https://go.dev/doc/pgo
- karel-3d 8mo agoI never noticed much difference with using pgo even after taking a very long real life profile. All the machinery required to get it and put it to CI was never worth the speed-up. Of course YMMV.