diff options
| author | root <[email protected]> | 2024-11-14 03:13:06 +0000 |
|---|---|---|
| committer | root <[email protected]> | 2024-11-14 03:13:06 +0000 |
| commit | df24326470e7ab75aadfc591791aebd8aaf50768 (patch) | |
| tree | 78a141214955984a10ce659f14361e3a783492e6 /src/maat_expr.c | |
| parent | 2dfcf103c04d616beffa2d1582c990fa02360f3a (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.c | 4 |
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); } |
