当我们安装好esp32开发环境后,发现build速度极慢,打开任务管理器,发现windows defender占了一半的cpu,这时手动设置windows defender排除项,可加快编译速度3~5倍。
设置方法出自github,如下:
The quick way to exclude everything in .espressif/tools (PowerShell command):
Invoke-WebRequest 'https://dl.espressif.com/dl/idf-env/idf-env.exe' -OutFile .\idf-env.exe
.\idf-env.exe antivirus exclusion add --all
The command will produce the same behavior as PowerShell script in the previous installer.
Command to remove all exclusions: