Skip to content

Static generation vs loading protos at runtime #439

@JustinBeckwith

Description

@JustinBeckwith

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

Metadata

Metadata

Assignees

No one assigned

    Labels

    status: investigatingThe issue is under investigation, which is determined to be non-trivial.type: feature request‘Nice-to-have’ improvement, new feature or different behavior or design.

    Type

    No type

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions