Thanks for your answer brucejo, I made some exclusions to Defender and it seems to fix it but let’s wait a bit, I’ll confirm whether the problem has completely disappeared when I’m sure it did knocking on wood
Also, try shutting down your editor while the build is happening. If you see an improvement then you should make sure the editor has a watcher exclusion for .meteor\local.
Try shutting down atom and doing a build. If the build is noticeably faster, then it is likely atom has some sort of watcher.
Or with Atom up, do a build. Look at the Task Manager sorted by CPU usage. If you see some Atom processes getting busy during a build, then it is likely there is a watcher.
Ok so I’ve been working for 45min an the problem hasn’t occured anymore. It seems the Windows Defender exceptions solved it ! I now experience quick rebuilds every time.
Atom did not seem to have any influence on the issue.
I added my application folder and node to exceptions.
So it’s been a day now and I can safely that the issue has indeed disappeared. My build times are now fast every time.
The reason why I hesitated was because another symptom arised; the builder seems to freeze and crash every 10 rebuilds or so, and gets stuck on “building for os…” forever, at which point I need to terminate and restart.
I know this is a different issue, but where should I be looking ? Is there a log or something somewhere that I can check out ?
So the windows defender exception might have helped since I have quick rebuilds most of the time now.
There’s probably another issue since the build sometimes gets back to 90 seconds with the same symptom as above in the profiler (always 89 seconds for files.rename), the only difference being that it happens less often now (around 1 time every 5-10 rebuilds instead of almost every time).
I added every possible folder and node to exceptions in windows defender. I also tried disabling real time protection altogether. My gitignore ignores the build folder too. Not sure where I should look next any idea would be much appreciated.
I believe I found the culprit in windows’ Search Indexer. My folder was on the desktop which is being indexed, so the solution is either to move it to a non indexed area or to edit the indexation options of windows to exclude the folder.