<?xml version="1.0" encoding="UTF-8"?>
<rss xmlns:content="http://purl.org/rss/1.0/modules/content/" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#" xmlns:taxo="http://purl.org/rss/1.0/modules/taxonomy/" version="2.0">
  <channel>
    <title>topic Re: Cortex XDR greatly affects C++ build performance in Cortex XDR Discussions</title>
    <link>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/cortex-xdr-greatly-affects-c-build-performance/m-p/1259096#M9448</link>
    <description>&lt;P&gt;A 3x slowdown usually points to real-time scanning of intermediate build artifacts. Aask your IT team to review the Cortex XDR policy and consider adding trusted exclusions for your build output folders such as .obj, .pdb, and other intermediate files or your compiler or build tools if that aligns with your organization's security policy. They can also check the Cortex XDR logs to confirm it's the agent causing the delay before making any changes.&lt;/P&gt;</description>
    <pubDate>Wed, 15 Jul 2026 21:25:37 GMT</pubDate>
    <dc:creator>henry.collinssss1</dc:creator>
    <dc:date>2026-07-15T21:25:37Z</dc:date>
    <item>
      <title>Cortex XDR greatly affects C++ build performance</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/cortex-xdr-greatly-affects-c-build-performance/m-p/1258973#M9444</link>
      <description>&lt;DIV&gt;
&lt;P&gt;I have a C++ project that I build using Visual Studio 2022. When I build it on a PC with Cortex XDR installed, the build takes more than 3 hours. It looks as if Cortex XDR is analyzing every &lt;CODE&gt;.obj&lt;/CODE&gt; file generated during the build process.&lt;/P&gt;
&lt;P&gt;Without Cortex XDR, the same build takes slightly less than 1 hour.&lt;/P&gt;
&lt;P&gt;The Cortex XDR application and its configuration are managed by the IT department. What can I communicate to the IT department so that they can configure Cortex XDR appropriately, in such a way that we do not suffer this significant slowdown when building our projects?&lt;/P&gt;
&lt;/DIV&gt;</description>
      <pubDate>Tue, 14 Jul 2026 08:40:38 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/cortex-xdr-greatly-affects-c-build-performance/m-p/1258973#M9444</guid>
      <dc:creator>jjfernando</dc:creator>
      <dc:date>2026-07-14T08:40:38Z</dc:date>
    </item>
    <item>
      <title>Re: Cortex XDR greatly affects C++ build performance</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/cortex-xdr-greatly-affects-c-build-performance/m-p/1259087#M9446</link>
      <description>&lt;P&gt;Hello&amp;nbsp;&lt;a href="https://live.paloaltonetworks.com/t5/user/viewprofilepage/user-id/1383181685"&gt;@jjfernando&lt;/a&gt;&amp;nbsp;,&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Greetings for the day.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;To resolve the significant build latency you are experiencing, you should communicate a specific set of &lt;STRONG&gt;Path Exclusions&lt;/STRONG&gt; and &lt;STRONG&gt;Performance Tuning&lt;/STRONG&gt; requests to your IT department. Visual Studio 2022 generates a massive volume of temporary files (&lt;CODE class="p8i6j0f"&gt;.obj&lt;/CODE&gt;, &lt;CODE class="p8i6j0f"&gt;.tlog&lt;/CODE&gt;, &lt;CODE class="p8i6j0f"&gt;.pch&lt;/CODE&gt;, &lt;CODE class="p8i6j0f"&gt;.pdb&lt;/CODE&gt;) and short-lived processes that trigger "Real-Time Protection" and "Behavioral Threat Protection" in Cortex XDR, leading to the 300% increase in build time you described.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;------------------------------------------------&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="p8i6j01 paragraph"&gt;&lt;STRONG&gt;1. Process Exclusions (High Priority)&lt;/STRONG&gt; Ask IT to add the following Visual Studio and C++ compiler executable paths to the &lt;STRONG&gt;Process Exclusion&lt;/STRONG&gt; list. This prevents Cortex XDR from monitoring the child processes spawned by the IDE during every compilation step:&lt;/P&gt;
&lt;UL class="p8i6j07 p8i6j02"&gt;
&lt;LI class="p8i6j0a"&gt;&lt;CODE class="p8i6j0f"&gt;C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC*\bin\Hostx64\x64\cl.exe&lt;/CODE&gt; (The C++ Compiler)&lt;/LI&gt;
&lt;LI class="p8i6j0a"&gt;&lt;CODE class="p8i6j0f"&gt;C:\Program Files\Microsoft Visual Studio\2022\Community\VC\Tools\MSVC*\bin\Hostx64\x64\link.exe&lt;/CODE&gt; (The Linker)&lt;/LI&gt;
&lt;LI class="p8i6j0a"&gt;&lt;CODE class="p8i6j0f"&gt;C:\Program Files\Microsoft Visual Studio\2022\Community\Common7\IDE\devenv.exe&lt;/CODE&gt; (Visual Studio IDE)&lt;/LI&gt;
&lt;LI class="p8i6j0a"&gt;&lt;CODE class="p8i6j0f"&gt;C:\Windows\Microsoft.NET\Framework64*\MSBuild.exe&lt;/CODE&gt; (The Build Engine)&lt;/LI&gt;
&lt;/UL&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P class="p8i6j01 paragraph"&gt;&lt;STRONG&gt;2. Path/Folder Exclusions (Performance Tuning)&lt;/STRONG&gt; Request that IT exclude your specific project build directories from &lt;STRONG&gt;Real-Time Protection (Scan on Write/Open)&lt;/STRONG&gt;. This is where the thousands of &lt;CODE class="p8i6j0f"&gt;.obj&lt;/CODE&gt; and &lt;CODE class="p8i6j0f"&gt;.tlog&lt;/CODE&gt; files are generated:&lt;/P&gt;
&lt;UL class="p8i6j07 p8i6j02"&gt;
&lt;LI class="p8i6j0a"&gt;&lt;STRONG&gt;Your Project Root:&lt;/STRONG&gt; &lt;CODE class="p8i6j0f"&gt;D:\Path\To\Your\Source\Code*&lt;/CODE&gt; (Include subdirectories)&lt;/LI&gt;
&lt;LI class="p8i6j0a"&gt;&lt;STRONG&gt;Intermediate Output Folders:&lt;/STRONG&gt; Usually named &lt;CODE class="p8i6j0f"&gt;Debug/&lt;/CODE&gt;, &lt;CODE class="p8i6j0f"&gt;Release/&lt;/CODE&gt;, &lt;CODE class="p8i6j0f"&gt;x64/&lt;/CODE&gt;, or &lt;CODE class="p8i6j0f"&gt;obj/&lt;/CODE&gt; within your project structure.&lt;/LI&gt;
&lt;LI class="p8i6j0a"&gt;&lt;STRONG&gt;Visual Studio Temp Folders:&lt;/STRONG&gt; &lt;CODE class="p8i6j0f"&gt;%LOCALAPPDATA%\Microsoft\VisualStudio*\&lt;BR /&gt;&lt;/CODE&gt;&lt;CODE class="p8i6j0f"&gt;&lt;/CODE&gt;&lt;/LI&gt;
&lt;/UL&gt;
&lt;P class="p8i6j01 paragraph"&gt;&lt;STRONG&gt;3. Behavioral Threat Protection (BTP) Tuning&lt;/STRONG&gt; Since C++ builds involve many rapid process executions (a behavior that mimics some malware), ask IT to check if the &lt;STRONG&gt;Behavioral Threat Protection&lt;/STRONG&gt; or &lt;STRONG&gt;Ransomware Protection&lt;/STRONG&gt; modules are showing high "CPU/Disk overhead" logs for &lt;CODE class="p8i6j0f"&gt;cl.exe&lt;/CODE&gt;. They may need to specifically exclude the compiler from these behavioral modules.&lt;BR /&gt;&lt;BR /&gt;&lt;/P&gt;
&lt;DIV&gt;
&lt;DIV&gt;
&lt;SECTION dir="auto"&gt;
&lt;DIV&gt;
&lt;DIV&gt;
&lt;DIV&gt;&amp;nbsp;&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;/SECTION&gt;
&lt;/DIV&gt;
&lt;/DIV&gt;
&lt;P&gt;If you feel this has answered your query, please let us know by clicking&amp;nbsp;&lt;STRONG&gt;like&amp;nbsp;&lt;/STRONG&gt;and on&amp;nbsp;&lt;STRONG&gt;"mark this as a Solution"&lt;/STRONG&gt;.&lt;/P&gt;
&lt;P&gt;&amp;nbsp;&lt;/P&gt;
&lt;P&gt;Thanks &amp;amp; Regards,&lt;BR /&gt;S. Subashkar Sekar&lt;/P&gt;</description>
      <pubDate>Wed, 15 Jul 2026 14:47:55 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/cortex-xdr-greatly-affects-c-build-performance/m-p/1259087#M9446</guid>
      <dc:creator>susekar</dc:creator>
      <dc:date>2026-07-15T14:47:55Z</dc:date>
    </item>
    <item>
      <title>Re: Cortex XDR greatly affects C++ build performance</title>
      <link>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/cortex-xdr-greatly-affects-c-build-performance/m-p/1259096#M9448</link>
      <description>&lt;P&gt;A 3x slowdown usually points to real-time scanning of intermediate build artifacts. Aask your IT team to review the Cortex XDR policy and consider adding trusted exclusions for your build output folders such as .obj, .pdb, and other intermediate files or your compiler or build tools if that aligns with your organization's security policy. They can also check the Cortex XDR logs to confirm it's the agent causing the delay before making any changes.&lt;/P&gt;</description>
      <pubDate>Wed, 15 Jul 2026 21:25:37 GMT</pubDate>
      <guid>https://live.paloaltonetworks.com/t5/cortex-xdr-discussions/cortex-xdr-greatly-affects-c-build-performance/m-p/1259096#M9448</guid>
      <dc:creator>henry.collinssss1</dc:creator>
      <dc:date>2026-07-15T21:25:37Z</dc:date>
    </item>
  </channel>
</rss>

