summaryrefslogtreecommitdiffstats
path: root/runtime/msg.h
diff options
context:
space:
mode:
authorRainer Gerhards <rgerhards@adiscon.com>2012-11-06 17:48:35 +0100
committerRainer Gerhards <rgerhards@adiscon.com>2012-11-06 17:48:35 +0100
commit94f6326237404545877c3d3df0edef44e28bcda9 (patch)
treeb7edefc64a85cc3a41ad91e91013d3ad216bd35f /runtime/msg.h
parent28047567a2363f83b24b13108c626423dc1f1821 (diff)
downloadrsyslog-94f6326237404545877c3d3df0edef44e28bcda9.tar.gz
rsyslog-94f6326237404545877c3d3df0edef44e28bcda9.tar.bz2
rsyslog-94f6326237404545877c3d3df0edef44e28bcda9.zip
queue: reduce CPU load for deserializing message properties
Linear runtime due to message order. Was quadratic before. However, not a big overall improvement.
Diffstat (limited to 'runtime/msg.h')
-rw-r--r--runtime/msg.h1
1 files changed, 1 insertions, 0 deletions
diff --git a/runtime/msg.h b/runtime/msg.h
index 950de559..97bcc645 100644
--- a/runtime/msg.h
+++ b/runtime/msg.h
@@ -191,6 +191,7 @@ es_str_t* msgGetCEEVarNew(msg_t *pMsg, char *name);
rsRetVal msgAddJSON(msg_t *pM, uchar *name, struct json_object *json);
rsRetVal getCEEPropVal(msg_t *pM, es_str_t *propName, uchar **pRes, rs_size_t *buflen, unsigned short *pbMustBeFreed);
rsRetVal MsgGetSeverity(msg_t *pThis, int *piSeverity);
+rsRetVal MsgDeserialize(msg_t *pMsg, strm_t *pStrm);
/* TODO: remove these five (so far used in action.c) */
uchar *getMSG(msg_t *pM);