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

Speed up compilation? #4487

Open
ZenVoich opened this issue Apr 5, 2024 · 1 comment
Open

Speed up compilation? #4487

ZenVoich opened this issue Apr 5, 2024 · 1 comment

Comments

@ZenVoich
Copy link

ZenVoich commented Apr 5, 2024

It takes 25s to build a canister on my laptop, but it only uses up to 10% CPU.

Is it possible to somehow parallelize it to see 2.5s and 100% CPU load?)

@crusso
Copy link
Contributor

crusso commented Apr 8, 2024

Not easily, no. The motoko compiler is pretty sequential, and since we don't even do separate compilation for libraries, but whole program compilation, it'll probably stay that way.

However, if you are using mops, I wonder if your build times might be due to the use of the mops moc-wrapper indirection, which slows down dfx build significantly when used: ZenVoich/mops#222

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