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 the types registry in the domain is a std::set<unique_ptr<type>>. Types are allocated as a single buffer of variable width, and thus cannot be stored by value. So, since, every node in std::set is allocated, we make two allocations per type.
The solution is to implement a custom set of type (BST or RBT) which would allow the type to also hold node information inside. Then there would be a single allocation per type.
The text was updated successfully, but these errors were encountered:
Currently the types registry in the domain is a
std::set<unique_ptr<type>>
. Types are allocated as a single buffer of variable width, and thus cannot be stored by value. So, since, every node instd::set
is allocated, we make two allocations per type.The solution is to implement a custom set of type (BST or RBT) which would allow the type to also hold node information inside. Then there would be a single allocation per type.
The text was updated successfully, but these errors were encountered: