You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Currently zserio::Optional<T> allocates on heap for objects bigger than a hard-coded threshold (3 * sizeof(void*)). However in some cases it can be worthless to allocate T on heap, especially when the T allocates on heap by itself - i.e. when T is a container. Consider std::vector and std::string (including pmr versions).
We already have similar optimization for zserio::View<T> - see #38.
Also consider to do similar improvement in zserio::Variant.
The text was updated successfully, but these errors were encountered:
Currently
zserio::Optional<T>
allocates on heap for objects bigger than a hard-coded threshold (3 * sizeof(void*)
). However in some cases it can be worthless to allocateT
on heap, especially when theT
allocates on heap by itself - i.e. whenT
is a container. Considerstd::vector
andstd::string
(includingpmr
versions).Also consider to do similar improvement in
zserio::Variant
.The text was updated successfully, but these errors were encountered: