Commit 994ff443 authored by Geoff Simmons's avatar Geoff Simmons

dispatcher inner loop inexpensively filters for the tags of interest

before calling VSL_Match()
parent 7a1ef8e0
......@@ -442,6 +442,17 @@ dispatch(struct VSL_data *vsl, struct VSL_transaction * const pt[], void *priv)
unsigned xid;
enum VSL_tag_e tag;
/* Quick filter for the tags of interest */
switch(VSL_TAG(t->c->rec.ptr)) {
case SLT_VCL_Log:
case SLT_Timestamp:
case SLT_VSL:
break;
default:
continue;
}
/* Now filter for regexen, etc. */
if (!VSL_Match(vsl, t->c))
continue;
......
Markdown is supported
0% or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment