Re: [go-nuts] Re: Inlining local functions

2016-12-02 Thread Michael Jones
go build –gcflags=-m will show you what is and is not inlined. This is not the structural answer you seek, but it is the factual result of it. From: on behalf of Date: Friday, December 2, 2016 at 2:58 AM To: golang-nuts Cc: Subject: [go-nuts] Re: Inlining local functions On

[go-nuts] Re: Inlining local functions

2016-12-02 Thread nsajko
On Friday, 2 December 2016 11:55:59 UTC+1, nsa...@gmail.com wrote: > > Is there a summary somewhere of the general rules determining when > do functions get inlined? > > Specifically, it should always be a good decision to inline a > function that is only called from one place in the code (that is,