summaryrefslogtreecommitdiff
path: root/src/maat_expr.c
diff options
context:
space:
mode:
authorroot <[email protected]>2024-11-14 03:13:06 +0000
committerroot <[email protected]>2024-11-14 03:13:06 +0000
commitdf24326470e7ab75aadfc591791aebd8aaf50768 (patch)
tree78a141214955984a10ce659f14361e3a783492e6 /src/maat_expr.c
parent2dfcf103c04d616beffa2d1582c990fa02360f3a (diff)
patch performance optimization from maat4HEADdevelop-version5
change some utarray to thread local variable, to reduce the frequency of calloc and free
Diffstat (limited to 'src/maat_expr.c')
-rw-r--r--src/maat_expr.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/src/maat_expr.c b/src/maat_expr.c
index 1b06e42..64794bf 100644
--- a/src/maat_expr.c
+++ b/src/maat_expr.c
@@ -877,7 +877,7 @@ next:
state->thread_id, 1);
}
- return rule_compile_state_update(state->rule_compile_state, state->maat_inst, attribute_name,
+ return rule_compile_state_update(state, state->maat_inst, attribute_name,
state->rule_table_id, state->Nth_scan,
hit_maat_items, real_hit_item_num);
}
@@ -970,7 +970,7 @@ next:
state->thread_id, 1);
}
- return rule_compile_state_update(state->rule_compile_state, state->maat_inst, attribute_name,
+ return rule_compile_state_update(state, state->maat_inst, attribute_name,
state->rule_table_id, state->Nth_scan,
hit_maat_items, real_hit_item_cnt);
}