RStudio suddenly slow processing

Having the same problem. It seems the antimalware service executable windows defender antivirus service can stop RStudio from working (save button non-responsive in RStudio - couldn't even save or shut down RStudio - thankfully I could copy and paste my code to somewhere else but environment was lost)

I will try adding to windows defender exclusions.