Giter Club home page Giter Club logo

Comments (7)

donmendelson avatar donmendelson commented on May 29, 2024

Does the NumInGroup (number of entries) of the outer repeating group include an entry for the nested repeating group?

No, the NumInGroup of the outer group only give the number of occurrences of the outer group. The NumInGroup of the inner group gives its count. They are independent of each other.

Also while encoding do we have to first encode all entries of the outer repeating group followed by the nested repeating group?

No, what you have describe is breadth-first. Rather, a depth-first walk means you visit all nested groups of the first branch before moving to the second branch. If the groups were nested three deep, you would visit branch 1 of the outer group, then the first branch of the second level group, then all occurrences of the innermost group off of branch 1-1. Then the same pattern for branch 2 off the first branch of the outer group, etc. In other words, you go from trunk to the first leaf before going back to the second branch, and you follow the second branch all the way to its leaves before the third branch. Does that help explain it? If not, I guess a picture is needed.

from fix-simple-binary-encoding.

donmendelson avatar donmendelson commented on May 29, 2024

There is a picture here: https://en.wikipedia.org/wiki/Depth-first_search

If the diagram were a representation of a FIX message, each non-leaf node would contain a NumInGroup (group dimension).

from fix-simple-binary-encoding.

RFrenkel avatar RFrenkel commented on May 29, 2024

Hi Don,
Do you know if Real Logic SBE encoder supports nested repeating groups?

from fix-simple-binary-encoding.

donmendelson avatar donmendelson commented on May 29, 2024

@RFrenkel I believe the answer is yes, but you should post that question to real-logic/simple-binary-encoding.

from fix-simple-binary-encoding.

adkapur avatar adkapur commented on May 29, 2024

Got it thanks

from fix-simple-binary-encoding.

mjpt777 avatar mjpt777 commented on May 29, 2024

Yes the Real Logic SBE encoder does support nested repeating groups.

from fix-simple-binary-encoding.

RFrenkel avatar RFrenkel commented on May 29, 2024

Great! Thank you, Martin!

from fix-simple-binary-encoding.

Related Issues (20)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.