Horrible slow compile time

My scripts compile at least 40+ seconds when I make some even small changes. Which is ridiculous.
Do you have any idea what may cause it?

  • Both Unity and Project are on same SSD drive
  • Using only C#
  • Have less than 5000 lines of code, which is nothing
  • Have i5 (3.4GHz) and 12GB RAM, so speed should be really fast
  • Tried deleting Library and Temp folder from project so it reimports stuff, didn`t help
  • Dont have McAfee, so its scanning cannot slow it down

Please, any idea would be really, really appreciated, this is almost impossible to work with…

I’m having the same issue, making a new project and adding 1 line of comment to the script already causes the issue for me.

Well just reinstalled Unity(also removed all the “hidden” folders) and the problem persists.

Every time I either delete Library or Reimport All assets, the problem is gone for several recompiles, then it starts to slow done until the compiling takes ~1 minute on high end PC with 8000 lines of code…

What is that?