-
Notifications
You must be signed in to change notification settings - Fork 92
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Static generation vs loading protos at runtime #401
Comments
Is this in the scope of the upcoming microgenerator work? I feel like we would be able to take advantage of generated typescript protobuf code.. |
It looks like protobufjs doesn't support gRPC: grpc/grpc-node#528 |
To be clear, it doesn't support gRPC directly. |
@eoogbe any update on this issue? Thanks! |
I'd like to keep this open for discussion. It looks like this is something we should engage with the gRPC team. |
@eoogbe Is this something you can take to the gRPC team for exploration or should we assign it to another for follow up? |
We don't load protos directly anymore, instead, we use |
So, I'm in no way an expert on gRPC. I've noticed that we seem to be shipping *.proto files in our libraries, and then parsing/loading them at runtime. I also notice that we tend to do a lot of this synchronously, and during construction.
What do folks think of us... not doing that? Just guessing, but if we use
pbjs
to generate the stubs at compile time, wouldn't that save us a fair bit of runtime loading perf?@ofrobots @alexander-fenster @crwilcox @kinwa91
The text was updated successfully, but these errors were encountered: