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.
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.