Commit 106024e
committed
Skip AddAgentsToRm when no contexts have pending agents
AddAgentsToRm runs every step in both SetupIterationAll and
TearDownIterationAll. On steps where no agents were created, the
function still allocated NUMA vectors, called ResizeAgentUidMap,
GrowAgentContainer(0), and entered an OMP parallel region. Add an
early-out scan that checks all execution contexts for empty
new_agents_ and returns immediately when nothing to commit.1 parent b8aa228 commit 106024e
1 file changed
+13
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
318 | 318 | | |
319 | 319 | | |
320 | 320 | | |
| 321 | + | |
| 322 | + | |
| 323 | + | |
| 324 | + | |
| 325 | + | |
| 326 | + | |
| 327 | + | |
| 328 | + | |
| 329 | + | |
| 330 | + | |
| 331 | + | |
| 332 | + | |
| 333 | + | |
321 | 334 | | |
322 | 335 | | |
323 | 336 | | |
| |||
0 commit comments