Coder Social home page Coder Social logo

Comments (3)

vyazelenko avatar vyazelenko commented on June 10, 2024 1

Since SBE 1.30.0 it is possible to enable runtime checks that will enforce access order.
There is no issues with the above code as the messages are the leadership messages are not going to be frequent and the fixed fields are likely to be in the same cache line anyway.

from aeron.

vyazelenko avatar vyazelenko commented on June 10, 2024

@ssh352 Fields within a fixed block can be accessed in any order since they all have fixed offset. The order of access matters when accessing variable length fields and repeating groups.

from aeron.

ssh352 avatar ssh352 commented on June 10, 2024

@vyazelenko It is probably not a big deal here. But even for fixed size field it is advised (I understand it is ok if not) to decode in schema order. Thanks!

https://github.com/real-logic/simple-binary-encoding/wiki/Design-Principles#streaming-access

The SBE codecs are designed to encode and decode messages based on a forward progression of the position in the underlying buffer. It is possible to backtrack to a degree within messages but this is highly discouraged from a performance and latency perspective.

from aeron.

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.