|
FAST Protocol
< Previous Next >
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
Re: Fast encoding with multiple templates Dale Wilson / Object Computing, Inc 24 Apr 2009 10:42AM ET |