g_assert (restat != NULL);
msg_info_task (
"regexp statistics: %ud pcre regexps scanned, %ud regexps matched,"
- " %HL bytes scanned using pcre, %HL bytes scanned total",
+ " %ud regexps total, %ud regexps cached,"
+ " %HL bytes scanned using pcre, %HL bytes scanned total",
restat->regexp_checked,
restat->regexp_matched,
+ restat->regexp_total,
+ restat->regexp_fast_cached,
restat->bytes_scanned_pcre,
restat->bytes_scanned);
}
REF_RETAIN (cache);
rt->checked = g_slice_alloc0 (NBYTES (cache->nre));
rt->results = g_slice_alloc0 (cache->nre);
+ rt->stat.regexp_total = cache->nre;
return rt;
}
if (isset (rt->checked, re_id)) {
/* Fast path */
+ rt->stat.regexp_fast_cached ++;
return rt->results[re_id];
}
else {