Re: mamaMsg_toString & mamaMsg_freeString
Damian Maguire <d.maguire@...>
Hey Reed,toggle quoted message Show quoted text
This was actually discussed a while ago on the mailing lists, after a question from Guy. At the time Frank responded and indicated that the mamaMsg_freeString function was deprecated and that the expectation (and current Qpid Proton bridge implementation) is that bridges will reuse a string buffer for performance reasons. You can see Frank's response to the original question in the chain here: http://lists.openmama.org/pipermail/openmama-dev/2013-November/000740.html
We also raised a Bugzilla ticket to mark freeString as completely deprecated. This is actually a bit more complex than it sounds, but is set to be resolved as part of the enum removal/vtable work, so we'd expect to get it cleaned up in the reasonably near future. You can actually see how this is to be implemented, and some of the complexity associated with it here: https://github.com/OpenMAMA/OpenMAMA-dynamic/commit/77ae57177c42dbf00f1ba9cf5f858230bb555b83
Let me know if you have any other questions on this.
On 10/11/14 16:23, Alpert, Reed wrote: