Tuesday, December 13, 2022

GoLang "speed up"

Making Go more efficient with Bartłomiej Płotka, Kemal Akkoyun & Christian Simon (Go Time #260) |> Changelog


 Making a Go program 42% faster with a one character change • Harry Marr

Update: the title originally stated the optimisation made the program run 70% faster, rather than 42% (with a 1.7x change in speed). 

Go comes with a handy interactive profile visualisation tool. I visualised the profile as a flamegraph by running the following command then navigating to the flamegraph view in the menu at the top of the page.

$ go tool pprof -http=":8000" ./codeowners ./cpu.pprof





No comments: