Skip to content
Snippets Groups Projects
Commit 64dea9fb authored by Dominik Bartkiewicz's avatar Dominik Bartkiewicz Committed by Alejandro Sanchez
Browse files

Minor code performance improvement

move bit_or() before while()

Bug 9537
parent 26b23bb3
No related branches found
No related tags found
No related merge requests found
......@@ -1911,13 +1911,13 @@ static int _will_run_test(job_record_t *job_ptr, bitstr_t *node_bitmap,
job_record_t *next_job_ptr = NULL;
int overlap, rm_job_cnt = 0;
bit_or(node_bitmap, orig_map);
while (true) {
tmp_job_ptr = list_next(job_iterator);
if (!tmp_job_ptr) {
more_jobs = false;
break;
}
bit_or(node_bitmap, orig_map);
if (slurm_conf.debug_flags &
DEBUG_FLAG_SELECT_TYPE) {
overlap = bit_overlap(node_bitmap,
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment