Skip to content
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

Intelligent loading #3138

Open
oldergod opened this issue Oct 9, 2024 · 0 comments
Open

Intelligent loading #3138

oldergod opened this issue Oct 9, 2024 · 0 comments

Comments

@oldergod
Copy link
Member

oldergod commented Oct 9, 2024

If only precise roots are defined, namely without wildcards, instead of loading everything and parsing everything part on the proto source/path, once Wire found the type, it could do a kinda breadth search going through the imports of the proto file where the roots were found.
Another approach would be to, regardless of the roots, define "include roots" that Wire has to load. Then if necessary, it would go through the imports to resolve the type it wants to resolve.

The point would be that someone would not have to define in includes all the files that are required to load a schema, but at the same time without having Wire to load the whole proto source because if too big, it takes a lot of time.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant