Hi, I noticed that the codec class in ZProto is getting destroyed after each send or receive, this means that the object cannot be reused and a lot of heap allocations.
I don't see any constraints with reusing the object (all the fields already copied to the needle buffer). I'm writing a C# codec and in C# heap allocation is more expensive than C and happen a lot more (each byte array inside the class is another heap allocation) and I'm thinking not to destroy the object after each send or receive. Regards, Doron
_______________________________________________ zeromq-dev mailing list [email protected] http://lists.zeromq.org/mailman/listinfo/zeromq-dev
