Companion

object Companion

Properties

Link copied to clipboard
const val SHARE_KEYS: Int = 1

Keys will be shared between elements. Identical keys will only be serialized once, thus possibly saving space. But serialization performance might be slower and consumes more memory.

Link copied to clipboard

Strings and keys will be shared between elements.

Link copied to clipboard
const val SHARE_NONE: Int = 0

No keys or strings will be shared

Link copied to clipboard
const val SHARE_STRINGS: Int = 2

Strings will be shared between elements. Identical strings will only be serialized once, thus possibly saving space. But serialization performance might be slower and consumes more memory. This is ideal if you expect many repeated strings on the message.