-
Is FlexBuffers supported in flatcc? At first glance it appears that the answer is no but perhaps there is something equivalent instead. My goal is to store some large byte vectors as efficiently as possible without the overhead that comes with the standard FlatBuffers tables. |
Beta Was this translation helpful? Give feedback.
Replies: 1 comment 4 replies
-
No, there is no flexbuffer support. You can get dynamic typing using a custom flatbuffer scheme with unions but not super space efficient, and not what you are looking for here. If you have large byte vectors, the table overhead will not matter much relative to the vector size. Expect roughly around 12 bytes of per table overhead for pointer to vtable, actual vtable content, offset to byte vector, and padding. I doubt FlexBuffers will be much smaller since it needs to specify a name and a type for each field, and probably some offsets as well. |
Beta Was this translation helpful? Give feedback.
No, there is no flexbuffer support. You can get dynamic typing using a custom flatbuffer scheme with unions but not super space efficient, and not what you are looking for here.
If you have large byte vectors, the table overhead will not matter much relative to the vector size. Expect roughly around 12 bytes of per table overhead for pointer to vtable, actual vtable content, offset to byte vector, and padding. I doubt FlexBuffers will be much smaller since it needs to specify a name and a type for each field, and probably some offsets as well.