|
FAST Protocol
< Previous Next >
Re: Fast encoding with multiple templates
Satish Dhavalgi 24 Apr 2009 4:02PM ET Dale Wilson & Rolf Anderson,
Thanks for your effort to clarify my doubts. I am first time using the multiple template Ids for the encoding/decoding, I am having some doubts. Let me explain the above discussed with a example.,
Template 1
This template has the following different fields
Field1 - Symbol
Field2 - Price1
Field3 - Size1
Field4 - Price2
Field5 - Size2
Field6 - Price3
Field7 - Size3
Field8 - Price4
Field8 - Size4
Template 2
This template has the following different fields.
Field1 - Symbol
Field2 - Price1
Field3 - Price2
Field4 - Price3
Field5 - Price4
All above field operators are COPY_CODE
Here I have the following questions in mind
If the template Id is global, what about the rest of the fields? Whether they will be global acros the two templates, if field name is same?
What about the PMAP ? is it common for both the templates?. If the field Price1 of template 1 is same as Price1 of template 2, shouldnt it be sent again on the wire? Whether Price3 across templates occupy the same slot in the PMAP array ?
My initial understanding was that the values of the fields are maintained in the context of templates( Template1 and Template2). I assumed same field across two templates ex, price3 will occupy different slots in PMAP in both templates.
Please throw some light on this.
Thanks
Satish
Re: Fast encoding with multiple templates Satish Dhavalgi 24 Apr 2009 4:02PM ET |