danielgtaylor / python-betterproto

Clean, modern, Python 3.6+ code generator & library for Protobuf 3 and async gRPC
MIT License
1.45k stars 196 forks source link

Unnecessary critical path runtime dependency on grpclib.client #37

Closed nat-n closed 4 years ago

nat-n commented 4 years ago

executing import betterproto takes 110ms and consumes >12MB of RAM. Almost all of this is spent on importing grpclib.client.

This probably isn't a major concern for most applications, but may be for some, and is also easily avoided since it is only used for typechecking so could be imported under the TYPE_CHECKING condition so as to have no effect at runtime.

nat-n commented 4 years ago

Fixed by #52