You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
go version devel +ef0e2af Mon Nov 6 15:55:31 2017 +0000 linux/amd64
Go currently performs inlining of small functions, but if it encounters any explicit loop construct, such as for loop, function is never inlined. This causes code to use goto instead (e. g. tryWriteCopy in compress/flate/dict_decoder_test.go in standard library) to simulate loops. Inlining functions with loops can significantly improve performance. For example replacing for with goto in PutUvarint (in encoding/binary) results in 40% speed-up.
What version of Go are you using (
go version
)?go version devel +ef0e2af Mon Nov 6 15:55:31 2017 +0000 linux/amd64
Go currently performs inlining of small functions, but if it encounters any explicit loop construct, such as for loop, function is never inlined. This causes code to use goto instead (e. g. tryWriteCopy in compress/flate/dict_decoder_test.go in standard library) to simulate loops. Inlining functions with loops can significantly improve performance. For example replacing for with goto in PutUvarint (in encoding/binary) results in 40% speed-up.
I'd prefer to get this speed-up without uglyfing code with goto.
The text was updated successfully, but these errors were encountered: