Replies: 8 comments
-
Yes, we support standard C++ allocators. You can pass allocator to the contructor of generated objects. It is possible to influence used C++ allocator by Zserio command line argument
|
Beta Was this translation helpful? Give feedback.
-
|
Beta Was this translation helpful? Give feedback.
-
Thanks for your answers. I tried |
Beta Was this translation helpful? Give feedback.
-
Yes, unfortunately the allocator approach changes the types. On some places you can use |
Beta Was this translation helpful? Give feedback.
-
After some code fixes, the And i found that the memory used when deserialize the smart layer tile is a little big, eg:
|
Beta Was this translation helpful? Give feedback.
-
In general, you should use Regarding the size of deserialized data, it all depends one the concrete schema. For example, when the schema contains many small nested arrays, the Unfortunately we are not able to help you with issues related NDS schema, since |
Beta Was this translation helpful? Give feedback.
-
How is the allocation especially in nested structures of a std::vector in Zserio? Is a std::vector allocated with a size larger than 0? This might not be such a good idea for some cases like where i is deeper nested and some of the vector are empty or containing only a less number of elements compared to the default element size of a container. |
Beta Was this translation helpful? Give feedback.
-
In general, we don't preallocate anything (except of the reader part where we exactly know the size of an array). However even the empty |
Beta Was this translation helpful? Give feedback.
-
Dear developers,
Is it possible to use pooled memory like protobuf arena when deserialize a buffer to message?
eg, for nds.live, when construct RoadLayer form SmartLaterTile's data layer blob.
Beta Was this translation helpful? Give feedback.
All reactions