Enum TypeRegistryMode
Denotes modes of handling type registry by Slim serializer
Namespace: Azos.Serialization.Slim
Assembly: Azos.dll
Syntax
public enum TypeRegistryMode
Fields
Name | Description |
---|---|
Batch | Type registry object is cloned from global types only once and it is retained after making calls. This is not a thread-safe mode, so only one thread may call Serialize/Deserialize at a time. This mode is beneficial for cases when many object instances of various types need to be transmitted so repeating their type names in every Ser/Deser is not efficient. In batch mode the type name is written/read to/from stream only once, then type handles are transmitted instead thus saving space and extra allocations |
PerCall | Type registry object is created for every Serialize/Deserialize call only cloning global types. This is the default mode which is thread-safe(many threads can call Serialize/Deserialize at the same time) |