Compilation very slow in CMD windows. Windows 10 65 bit PRO

Stephen C Ross 0 Reputation points
2024-09-07T18:25:30.1366667+00:00

Since one of the recent updates compilation has become extremely slow in "Windows Command Processor" running as Administrator. (Windows 10 65 bit PRO.) Under Task Manager the compilation is now said to be using only 0.0% to 0.3% of the CPU. This used to take seconds and would fully commit one core. Now it takes minutes!I am using a compiler actually on my machine. There is no network or service involved.

Windows 10
Windows 10
A Microsoft operating system that runs on personal computers and tablets.
12,077 questions
{count} votes

3 answers

Sort by: Most helpful
  1. S.Sengupta 22,536 Reputation points MVP
    2024-09-08T01:17:08.8166667+00:00

    Open Settings > Windows Update > View update history.

    Try to find which recent update might have caused this issue.

    Boot into Safe Mode and check the issue there.

    0 comments No comments

  2. Michael Taylor 57,216 Reputation points
    2024-09-08T02:20:05.6033333+00:00

    Since this involves a third party product I would recommend you ask them for help. It is possible they rely on certain behaviors in the OS that are no longer true. On the OS side it seems unlikely that a specific update would negatively impact performance of one app while the other apps run the same. Issues with CPU speed would impact everything as would slowdown in IO calls.

    0 comments No comments

  3. Yanhong Liu 14,135 Reputation points Microsoft External Staff
    2024-09-10T02:55:56.4366667+00:00

    Based on your description, there are a few steps you can try to diagnose and possibly resolve the issue:

    1. Check for Background Processes:

    Open Task Manager (Ctrl + Shift + Esc) and see if any processes are consuming significant CPU or disk resources that could be impacting performance.

    1. Disable Real-Time Protection:

    Antivirus software can interfere with file operations. Try temporarily disabling real-time protection in your antivirus software and see if that improves compilation.

    1. Update or reinstall the compiler:

    Make sure your compiler is up to date. If so, try reinstalling it and see if that resolves any potential issues introduced by the update.

    1. Check the environment variables:

    Problems with PATH or other environment variables can cause slowdowns. Make sure there are no errors or unnecessary directories in the PATH variable.

    1. System Operation:

    Run a system health check to see if there are any issues with your Windows installation. You can do this by running 'sfc /scannow' in an elevated command prompt.

    1. Disable Windows Defender-controlled folder access:

    Controlled folder access can sometimes interfere with some applications. You can try turning it off and see if that helps:

    1. Go to > Update & Security Settings > Windows Security > Virus & Threat Protection.
    2. Click on "Manage Settings" under "Virus & Threat Protection Settings".
    3. Scroll down to "Controlled Folder Access" and click "Manage Controlled Folder Access".
    4. Turn off Controlled Folder Access.

    Best Regards,

    Yanhong Liu

    ============================================

    If the Answer is helpful, please click "Accept Answer" and upvote it.

    0 comments No comments

Your answer

Answers can be marked as Accepted Answers by the question author, which helps users to know the answer solved the author's problem.