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
In the example below, p.G and q.H are identical, except that p.G is in the same package as p.F, yet cmd/compile decides that q.H is inlineable whereas p.G is not.
This is because cmd/compile currently only computes Inlcost for locally defined functions. Calls to functions in external packages are effectively treated as free.
In the example below,
p.G
andq.H
are identical, except thatp.G
is in the same package asp.F
, yet cmd/compile decides thatq.H
is inlineable whereasp.G
is not.This is because cmd/compile currently only computes
Inlcost
for locally defined functions. Calls to functions in external packages are effectively treated as free.The text was updated successfully, but these errors were encountered: