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 BenchmarkEfaceFn, the call gets inlined and the conversion get compiled completely away.
In BenchmarkEfaceFnVal, the call still has to happen (we have no devirtualization of calls at the moment), but the conversion to interface now happens statically at compile time.
Go 1.8 amd64 linux when running the below program
convT2E
is called forBenchmarkEfaceFnVal
but not forBenchmarkEfaceFn
.Program:
Result:
The text was updated successfully, but these errors were encountered: