-
Notifications
You must be signed in to change notification settings - Fork 236
Build is much slower than Arduino IDE #478
Comments
once you specified the build path, it would be "incremental" |
Can this be improved to generate a deterministic implicit build path in temp? |
Issue #354 has the same question, I think we need to investigate how to improve Build Manager |
I have also opened an issue #461, suggesting how this should work, but it has closed without response |
So I've figured out why this is happening to me. If you use a NFS share on a linux machine, and you are building on a windows machine, the timestamps won't line up properly so the entire cache will be rebuilt every time you verify. To fix this, set your build directory to something local. It's annoying, usually other software that runs into this ends up using Fat File Times to decrease precision a touch and things will line up again, but until/unless that gets implemented the only solution I can see is to change to a local build directory |
I am having this same problem on Windows, even if I have it point the build to a specific folder. Without any code changes it still talks about 1 minute or so to start uploading. |
I am having this same problem on Windows, even if I set the "output" path, verifying is still much slower than Arduino IDE. |
I'm using the arduino-cli for the build task and configured it to build with tasks.json. There you can provide a It would be helpful, if we could configure that in arduino.json as well... |
Here is workaround to pass #!/bin/sh
if [ $1 == "compile" ]; then
/path/to/arduino-cli $@ --build-cache-path /tmp/arduino_cache_vscode
else
/path/to/arduino-cli $@
fi Because arduino-cli is hardcoded, shell script must be also named Then in extension settings:
|
The Arduino IDE seems to be doing some "incremental" building of core libraries so that when I edit my sketch the "re-verify" happens in seconds. But with VS code Arduino plugin every verify seems to do the full build and takes minutes. I would love to get faster incremental build times...
The text was updated successfully, but these errors were encountered: