6 ms·
This is very similar to SBE encoder/decoder flyweights over raw memory? What are the differences?
by c-fe 4mo ago
This is very similar to SBE encoder/decoder flyweights over raw memory? What are the differences?
- joe_mwangi 4mo agoI have not used SBE but looking at it, my understanding is that it starts from an explicit schema, typically XML, and generates encoder/decoder flyweights over a binary buffer. That gives much more control to the user in terms of field order (very important), sizes. Here, TypedMemory takes a different starting point in which the Java record shape is the schema, and the library derives the FFM MemoryLayout/accessors from that. I think the difference is schema/codegen/protocol orientation vs Java-type/FFM/in memorylayout orientation.