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
The retry package in grpc-ecosystem/go-grpc-middleware makes use of golang.org/x/net/trace, which in turn calls text/template, which calls reflect.Value.MethodByName severely hampering dead code elimination.
which calls reflect.Value.MethodByName severely hampering dead code elimination.
How severely? And is it just this one reflection call or all of reflection? We also use reflection heavily, so unsure if removing that reflection call helps much.
Is it possible to work around it?
I am not sure it's reasonable to work around this issue with a commonly used dependency like go-grpc-middleware. Of course if solved upstream we'd gladly take the benefits.
Nothing immediate we can do here go-grpc-middleware is a dependency of the SDK. if go-grpc-middleware resolves grpc-ecosystem/go-grpc-middleware#704 then we would update to that version.
The
retry
package in grpc-ecosystem/go-grpc-middleware makes use of golang.org/x/net/trace, which in turn calls text/template, which callsreflect.Value.MethodByName
severely hampering dead code elimination.You can verify by pointing this with whydeadcode:
Is it possible to work around it?
Also reported in grpc-ecosystem/go-grpc-middleware#704.
The text was updated successfully, but these errors were encountered: