Split serializer policies into serializer and deserializer policies, and change serializer method names message() to SerializeMsg() and DeserializeMsg()

Improve boost serializer performance
This commit is contained in:
winckler
2015-02-11 10:32:40 +01:00
parent 6518b7cd41
commit 6d65c4313a
5 changed files with 12 additions and 11 deletions

View File

@@ -62,7 +62,8 @@ void GenericSampler<SamplerPolicy,OutputPolicy>::Run()
//fSamplerTask->SetEventIndex(eventNr);
FairMQMessage* msg = fTransportFactory->CreateMessage();
OutputPolicy::SetMessage(msg);
fPayloadOutputs->at(0)->Send(message(GetDataBranch(eventNr)));
fPayloadOutputs->at(0)->Send(OutputPolicy::SerializeMsg(
SamplerPolicy::GetDataBranch(eventNr)));
++sentMsgs;
if(msg)