CrystalJsonSettings.StringInterning
Namespace: SnowBank.Data.Json · enum
Implements: IComparable, ISpanFormattable, IFormattable, IConvertible
Rules for interning strings, and reduce memory allocations
Remarks
Interning can reduce the memory footprint of a JSON Object, by using the same instance for similar strings, at the cost of some cpu overhead
Fields
Default
Default = 0
Only the names of objects fields, as well as small numbers (3 digits or fewer), will be interned
Disabled
Disabled = 1
No string will be interned
IncludeNumbers
IncludeNumbers = 2
Same as Default, but include all number literals
IncludeValues
IncludeValues = 3
All field types (names, string literals, guid, numbers), EXCEPT dates, will be interned