summaryrefslogtreecommitdiffstats
path: root/runtime/obj.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/obj.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/obj.h')
-rw-r--r--runtime/obj.h4
1 files changed, 3 insertions, 1 deletions
diff --git a/runtime/obj.h b/runtime/obj.h
index 72f806da..27d32b7a 100644
--- a/runtime/obj.h
+++ b/runtime/obj.h
@@ -118,7 +118,9 @@ ENDinterface(obj)
rsRetVal objGetObjInterface(obj_if_t *pIf);
PROTOTYPEObjClassInit(obj);
PROTOTYPEObjClassExit(obj);
-rsRetVal objDeserializeWithMethods(void *ppObj, uchar *pszTypeExpected, int lenTypeExpected, strm_t *pStrm, rsRetVal (*fFixup)(obj_t*,void*), void *pUsr, rsRetVal (*objConstruct)(), rsRetVal (*objConstructFinalize)(), rsRetVal (*objSetProperty)());
+rsRetVal objDeserializeWithMethods(void *ppObj, uchar *pszTypeExpected, int lenTypeExpected, strm_t *pStrm, rsRetVal (*fFixup)(obj_t*,void*), void *pUsr, rsRetVal (*objConstruct)(), rsRetVal (*objConstructFinalize)(), rsRetVal (*objDeserialize)());
+rsRetVal objDeserializeProperty(var_t *pProp, strm_t *pStrm);
+rsRetVal objDeserializeDummy(obj_t *pObj, strm_t *pStrm);
/* the following definition is only for "friends" */