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

Compilation time is too slow (more than 40s) #31

Open
Farkal opened this issue Feb 3, 2020 · 3 comments
Open

Compilation time is too slow (more than 40s) #31

Farkal opened this issue Feb 3, 2020 · 3 comments

Comments

@Farkal
Copy link

Farkal commented Feb 3, 2020

Example -> https://github.com/Farkal/test-wundergraph

@Farkal
Copy link
Author

Farkal commented Feb 5, 2020

Seems linked with rustc -> rust-lang/rust#68796

@weiznich
Copy link
Owner

weiznich commented Feb 7, 2020

It seems like you could easily half the compilation time by not having a lib.rs and a main.rs in the same crate. I assume this setup results in rustc building the crate twice. Without that a cargo check is from me less then 10 seconds, a cargo build less then 20 seconds when having only a lib.rs. So the right strategy here seems to be having two crates, one for the wundergraph definition, and one for the final binary.

@Farkal
Copy link
Author

Farkal commented Feb 7, 2020

Did you try with main in /bin ? (I did it and don't see any change but perhaps it work for you)
It's still not easy to dev large app :/

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

2 participants