Discussion Forums

Re: Fast encoding with multiple templates
Dale Wilson / Object Computing, Inc
24 Apr 2009 10:42AM ET

> Thanks for your reply, here template Id is not common across the
> messages. Each message is having different template Id. For the
> corresponding message, if it is already present in the previous message,
> so it wont send again.(since its COPY CODE ).
>
> Message 1 : templaet Id = 1, bitmap =1
> Message 2 : template Id = 2 ,bitmpap = 1
> Message 3 : template Id = 1 , bitmap =0 ( since its already
> encoded for that template previously)

Since this obviously doesn't work, your understanding of the standard must be incorrect. You need to understand that the template ID is stored globally, not in a template-specific dictionary. For message 3 the saved template ID is 2, so in order to use template id 1, the template ID must appear on the wire -- hence pmap bit = 1.

Note that using the global dictionary is the default, so not only the template ID, but any other field in message 3 that occurred in message 2 will be encoded/decoded using the message 2 value as the base. This can be overridden using the dictionary or key attributes.

Dale


Fast encoding with multiple templates
Satish Dhavalgi / ODI   22 Apr 2009 3:38PM ET
Re: Fast encoding with multiple templates
Dale Wilson / Object Computing, Inc   22 Apr 2009 3:50PM ET
Re: Fast encoding with multiple templates
Sat D   23 Apr 2009 11:28AM ET
Re: Fast encoding with multiple templates
Rolf Andersson / Pantor Engineering   23 Apr 2009 12:24PM ET
Re: Fast encoding with multiple templates
Dale Wilson / Object Computing, Inc   24 Apr 2009 10:42AM ET
Re: Fast encoding with multiple templates
Satish Dhavalgi   24 Apr 2009 4:02PM ET
Re: Fast encoding with multiple templates
Dale Wilson / Object Computing, Inc   24 Apr 2009 4:19PM ET