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

dfx build is much slower than direct usage of moc #3702

Open
vporton opened this issue Apr 9, 2024 · 0 comments
Open

dfx build is much slower than direct usage of moc #3702

vporton opened this issue Apr 9, 2024 · 0 comments
Labels
needs-triage This ticket needs investigation.

Comments

@vporton
Copy link
Contributor

vporton commented Apr 9, 2024

First raised at https://forum.dfinity.org/t/why-is-dfx-build-much-slower-than-direct-usage-of-moc/29513

$ time moc --idl --stable-types `mops sources` -o ~/t/test.wasm stress-test/stresser.mo
...
|real|0m33.963s|
|---|---|
|user|0m33.733s|
|sys|0m0.367s|

but

$ time dfx build stresser
...
|real|0m51.280s|
|---|---|
|user|0m52.176s|
|sys|0m2.641s|

stresser canister has no dependencies.

So dfx build is nearly 2 times slower than plain moc invocation. Why? (I suspect that it builds also a wallet canister and is slow because of this.)

This needs to be fixed: dfx build should be faster (or provide flags to make it fast).

@vporton vporton added the needs-triage This ticket needs investigation. label Apr 9, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
needs-triage This ticket needs investigation.
Projects
None yet
Development

No branches or pull requests

1 participant