I have an issue since years where I just found out why it happens and when.
It seems that when lots of files are created or deleted, the Start10 thread starves CPU cores.
A very simple way to reproduce the issue is to compile a somewhat big project where GCC will create and use temporary files. Then start10 will starve 1-2 threads on my 2 Core (4 Threads) laptop. Basically it shoots up the explorer.exe usage to 40-50% average.
That happens even if I have the project folder in search exclusions in windows search settings and windows defender.
Here's a screenshot from procexp
Because of how it happens, my compilations take more than triple the time, even if the cores starved are half or so which is a major issue.
Is there a way to fix this or mitigate it at least?
PS: I tried using the start10/11 uninstaller and cleaner tool and reinstalling latest version. And also I tried rebuilding windows search indexer cache.