diff options
author | Rainer Gerhards <rgerhards@adiscon.com> | 2010-06-01 13:53:12 +0200 |
---|---|---|
committer | Rainer Gerhards <rgerhards@adiscon.com> | 2010-06-01 13:53:12 +0200 |
commit | 59227a861821b2e0e37357c0695f6b3d9f11dd9d (patch) | |
tree | 6211c46fb45d462404bfeaa560f98ec2ae37b52a /template.h | |
parent | 4b906fe9cf75948ebb600a8734ad440edc741f38 (diff) | |
download | rsyslog-59227a861821b2e0e37357c0695f6b3d9f11dd9d.tar.gz rsyslog-59227a861821b2e0e37357c0695f6b3d9f11dd9d.tar.xz rsyslog-59227a861821b2e0e37357c0695f6b3d9f11dd9d.zip |
experimental commit: facility to generate template via C function
This was a test done to try to generate templates with C code, via
a new (potentially to-be-implemented) class of template modules. We have
a rough POC inside this code, and it showed around 5% or better speedup. So
it semms worth continuing in this direction.
Note that this experimental commit works correct, but does any
template in the form of
$template tpl,=somewhat
will lead to fixed template expansion based on the default file format.
Diffstat (limited to 'template.h')
-rw-r--r-- | template.h | 1 |
1 files changed, 1 insertions, 0 deletions
@@ -32,6 +32,7 @@ struct template { struct template *pNext; char *pszName; int iLenName; + uchar *tplMod; /* name of template module to use * TODO: replace by ptr to entry point! */ int tpenElements; /* number of elements in templateEntry list */ struct templateEntry *pEntryRoot; struct templateEntry *pEntryLast; |