Toolchain very slow on Windows machines

Dear Nordic Team,

we are using the adafruit_feather_nrf52840 and nrf52840dk for our prototypes and recently the toolchain around nrf and zephyr has become a problem.

Build times (especially compilation of the device tree according to logs) became very long such that one reload of our cmake project takes up to 15 minutes.

It had worked in reasonable time previously, at some point the toolchain slowed down on 2 individual machines.
This has happened on 2 different machines with 3 different versions of zephyr and the nrf toolchain (v2.6.0, v2.6.1, v2.7.0).

I tested using standalone zephyr for the build which doesn't seem to work trivially, however it does build an image in less than 10 seconds.
Also on a Linux machine I have available, the build times are much shorter.

Is anybody aware of any windows specific problems or problems with dtc.exe that may cause this?

Is there some cache we directory or temporal files we may have missed to clean?

We have been investigating for some time now as it really slows down our development iterations severely.

Related