It was noticed that the first launch of the platform on a local machine takes quite a long time and initialization of the module catalog takes most of the time.
I found out that the source of long-term initialization of modules is the work of Windows defender. It checks the directories associated with the launch of the platform and thereby slows down the launch. He does not do this every launch, but only after some long interval between platform launches. The best way to detect this behavior is to launch the platform immediately after restarting Windows.
First, I added the directory with the modules to the exclusions. But it didn’t help. Then I added a directory with the source code of the modules, because I had a lot of symbolic links to them. That didn’t help either. Only the addition of the entire directory in which the platform is located had an effect and each launch, even after restarting Windows, began to run very quickly. I think the Windows defender checks all the files involved in the launch, including the platform itself.
To add directory to the exclusions on Windows 10:
- Press Win+X
- Select “System”
- Click " See details in Windows Security"
- Choose “Virus & threat protection”
- Click “Manage settings”
- Scroll screen and click “Add or remove exclusions” in Exclusions section
- Press the button “Add an exclusion” and select “Folder” in pop-up menu
- Specify the directory