Commit d933e82
committed
flux-resource: fix performance issue generting queue output
Problem: In commit 4243895 a test
for an empty resource set was added to the queue property of the
ResourceSetExtra class to avoid generating a queue for an empty
resource set. However, the test for empty uses self.rlist, which is an
expensive call. Also, the test is done for each queue in the config,
even though the contents of the resource set won't change.
Use self.ranks instead of self.rlist to check for an empty resource
set and move the call out of the loop so it is made only once.
Fixes #58571 parent a6abe63 commit d933e82
1 file changed
+2
-2
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
443 | 443 | | |
444 | 444 | | |
445 | 445 | | |
| 446 | + | |
| 447 | + | |
446 | 448 | | |
447 | 449 | | |
448 | | - | |
449 | | - | |
450 | 450 | | |
451 | 451 | | |
452 | 452 | | |
| |||
0 commit comments